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

Commit

Permalink
Add tests for PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Dec 10, 2016
1 parent e2435e1 commit c33fcf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ env:
DRUPALVM_DIR: /var/www/drupalvm
DRUSH_BIN: drush
TEST_INSTALLED_EXTRAS: true

matrix:
# Defaults - Ubuntu 16.04.
- type: defaults
distro: ubuntu1604
init: /sbin/init
run_opts: "--privileged"
# PHP 5.6 - Ubuntu 16.04.
- type: defaults
distro: ubuntu1604
init: /sbin/init
run_opts: "--privileged"
local_config: tests/ubuntu-16-php56.config.yml
# Nginx and Drush make file test - Ubuntu 16.04.
- type: nginx-drush-make
distro: ubuntu1604
Expand Down Expand Up @@ -67,6 +74,8 @@ script:
- 'docker exec ${container_id} cp ${DRUPALVM_DIR}/${MAKEFILE} ${config_dir:-$DRUPALVM_DIR}/drupal.make.yml'
- 'docker exec ${container_id} cp ${DRUPALVM_DIR}/${COMPOSERFILE} ${config_dir:-$DRUPALVM_DIR}/drupal.composer.json'

- '[[ ! -z "${DRUPALVM_ENV}" ]] && docker exec ${container_id} bash -c "cp ${DRUPALVM_DIR}/tests/${DRUPALVM_ENV}.config.yml ${config_dir:-$DRUPALVM_DIR}/${DRUPALVM_ENV}.config.yml" || true'

# Override configuration variables.
- '[[ ! -z "${local_config}" ]] && docker exec ${container_id} bash -c "cp ${DRUPALVM_DIR}/${local_config} ${config_dir:-$DRUPALVM_DIR}/local.config.yml" || true'

Expand All @@ -82,9 +91,9 @@ script:
# Run the playbook with ansible-playbook.
- >
if [ ! -z "${config_dir}" ]; then
docker exec --tty ${container_id} env TERM=xterm ansible-playbook ${DRUPALVM_DIR}/provisioning/playbook.yml --extra-vars="config_dir=${config_dir}";
docker exec --tty ${container_id} env TERM=xterm DRUPALVM_ENV=${DRUPALVM_ENV} ansible-playbook ${DRUPALVM_DIR}/provisioning/playbook.yml --extra-vars="config_dir=${config_dir}";
else
docker exec --tty ${container_id} env TERM=xterm ansible-playbook ${DRUPALVM_DIR}/provisioning/playbook.yml;
docker exec --tty ${container_id} env TERM=xterm DRUPALVM_ENV=${DRUPALVM_ENV} ansible-playbook ${DRUPALVM_DIR}/provisioning/playbook.yml;
fi
# Run integration tests.
Expand Down
2 changes: 2 additions & 0 deletions tests/ubuntu-16-php56.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
php_version: "5.6"

0 comments on commit c33fcf9

Please sign in to comment.