Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit a5acda9

Browse files
committed
Default to python 2 still for backwards compatibility.
1 parent 6ccbf56 commit a5acda9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,20 @@ env:
2020
# Defaults - Ubuntu 18.04.
2121
- type: defaults
2222
distro: ubuntu1804
23+
tag: python2
2324
# Defaults - Debian 9.
2425
- type: debian
2526
distro: debian9
2627
# Defaults - CentOS 7.
2728
- type: centos
2829
distro: centos7
30+
tag: python2
2931
local_config: tests/centos-7.config.yml
3032

3133
# PHP 7.3 - Ubuntu 18.04.
3234
- type: defaults
3335
distro: ubuntu1804
36+
tag: python2
3437
local_config: tests/ubuntu-18-php73.config.yml
3538
DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
3639
TEST_INSTALLED_EXTRAS: false
@@ -51,9 +54,6 @@ env:
5154
# TEST_INSTALLED_EXTRAS: false
5255

5356
before_install:
54-
# Pull container.
55-
- docker pull geerlingguy/docker-${distro}-ansible:latest
56-
5757
# Install lint tools.
5858
- gem install rubocop
5959

provisioning/docker/bake.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ DRUPALVM_HTTP_PORT="${DRUPALVM_HTTP_PORT:-80}"
1515
DRUPALVM_HTTPS_PORT="${DRUPALVM_HTTPS_PORT:-443}"
1616

1717
DISTRO="${DISTRO:-ubuntu1804}"
18+
TAG="${TAG:-python2}"
1819
OPTS="${OPTS:---privileged}"
1920
INIT="${INIT:-/lib/systemd/systemd}"
2021

@@ -41,7 +42,7 @@ docker run --name=$DRUPALVM_MACHINE_NAME -d \
4142
-p $DRUPALVM_IP_ADDRESS:$DRUPALVM_HTTP_PORT:80 \
4243
-p $DRUPALVM_IP_ADDRESS:$DRUPALVM_HTTPS_PORT:443 \
4344
$OPTS \
44-
geerlingguy/docker-$DISTRO-ansible:latest \
45+
geerlingguy/docker-$DISTRO-ansible:$TAG \
4546
$INIT
4647

4748
# Create Drupal directory.

tests/run-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ TEST_INSTALLED_EXTRAS="${TEST_INSTALLED_EXTRAS:-true}"
1515
CONTAINER_ID="${CONTAINER_ID:-dvm-test}"
1616
type="${type:-tests/defaults}"
1717
distro="${distro:-ubuntu1604}"
18+
tag="${tag:-latest}"
1819
cleanup="${cleanup:-true}"
1920

2021
## Set up vars for Docker setup.
@@ -81,7 +82,7 @@ docker run --name=$CONTAINER_ID -d \
8182
--add-host "$HOSTNAME drupalvm":127.0.0.1 \
8283
-v $PWD:/var/www/drupalvm/:$volume_opts \
8384
$opts \
84-
geerlingguy/docker-$distro-ansible:latest \
85+
geerlingguy/docker-$distro-ansible:$tag \
8586
$init
8687

8788
# Set up directories.

0 commit comments

Comments
 (0)