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

Commit

Permalink
Default to python 2 still for backwards compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Feb 22, 2020
1 parent 6ccbf56 commit a5acda9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@ env:
# Defaults - Ubuntu 18.04.
- type: defaults
distro: ubuntu1804
tag: python2
# Defaults - Debian 9.
- type: debian
distro: debian9
# Defaults - CentOS 7.
- type: centos
distro: centos7
tag: python2
local_config: tests/centos-7.config.yml

# PHP 7.3 - Ubuntu 18.04.
- type: defaults
distro: ubuntu1804
tag: python2
local_config: tests/ubuntu-18-php73.config.yml
DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
TEST_INSTALLED_EXTRAS: false
Expand All @@ -51,9 +54,6 @@ env:
# TEST_INSTALLED_EXTRAS: false

before_install:
# Pull container.
- docker pull geerlingguy/docker-${distro}-ansible:latest

# Install lint tools.
- gem install rubocop

Expand Down
3 changes: 2 additions & 1 deletion provisioning/docker/bake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ DRUPALVM_HTTP_PORT="${DRUPALVM_HTTP_PORT:-80}"
DRUPALVM_HTTPS_PORT="${DRUPALVM_HTTPS_PORT:-443}"

DISTRO="${DISTRO:-ubuntu1804}"
TAG="${TAG:-python2}"
OPTS="${OPTS:---privileged}"
INIT="${INIT:-/lib/systemd/systemd}"

Expand All @@ -41,7 +42,7 @@ docker run --name=$DRUPALVM_MACHINE_NAME -d \
-p $DRUPALVM_IP_ADDRESS:$DRUPALVM_HTTP_PORT:80 \
-p $DRUPALVM_IP_ADDRESS:$DRUPALVM_HTTPS_PORT:443 \
$OPTS \
geerlingguy/docker-$DISTRO-ansible:latest \
geerlingguy/docker-$DISTRO-ansible:$TAG \
$INIT

# Create Drupal directory.
Expand Down
3 changes: 2 additions & 1 deletion tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ TEST_INSTALLED_EXTRAS="${TEST_INSTALLED_EXTRAS:-true}"
CONTAINER_ID="${CONTAINER_ID:-dvm-test}"
type="${type:-tests/defaults}"
distro="${distro:-ubuntu1604}"
tag="${tag:-latest}"
cleanup="${cleanup:-true}"

## Set up vars for Docker setup.
Expand Down Expand Up @@ -81,7 +82,7 @@ docker run --name=$CONTAINER_ID -d \
--add-host "$HOSTNAME drupalvm":127.0.0.1 \
-v $PWD:/var/www/drupalvm/:$volume_opts \
$opts \
geerlingguy/docker-$distro-ansible:latest \
geerlingguy/docker-$distro-ansible:$tag \
$init

# Set up directories.
Expand Down

0 comments on commit a5acda9

Please sign in to comment.