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

Commit

Permalink
Sorry Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Dec 9, 2016
1 parent d6c7299 commit 927031c
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,64 @@ env:
DRUPALVM_DIR: /var/www/drupalvm
DRUSH_BIN: drush
TEST_INSTALLED_EXTRAS: true
- CONFIG: tests/config.yml
MAKEFILE: example.drupal.make.yml
COMPOSERFILE: example.drupal.composer.json
HOSTNAME: drupalvm.dev
MACHINE_NAME: drupalvm
IP: 192.168.88.88
DRUPALVM_DIR: /var/www/drupalvm
DRUSH_BIN: drush
TEST_INSTALLED_EXTRAS: true
DRUPALVM_ENV: php56
- CONFIG: tests/config.yml
MAKEFILE: example.drupal.make.yml
COMPOSERFILE: example.drupal.composer.json
HOSTNAME: drupalvm.dev
MACHINE_NAME: drupalvm
IP: 192.168.88.88
DRUPALVM_DIR: /var/www/drupalvm
DRUSH_BIN: drush
TEST_INSTALLED_EXTRAS: true
DRUPALVM_ENV: php71

matrix:
# Defaults - Ubuntu 16.04.
- type: defaults
distro: ubuntu1604
init: /sbin/init
run_opts: "--privileged"
# Defaults - Ubuntu 14.04.
- type: defaults
distro: ubuntu1404
init: /sbin/init
run_opts: "--privileged"
# Defaults - Ubuntu 12.04.
- type: defaults
distro: ubuntu1204
init: /sbin/init
run_opts: "--privileged"
# Nginx and Drush make file test - Ubuntu 16.04.
- type: nginx-drush-make
distro: ubuntu1604
init: /sbin/init
run_opts: "--privileged"
local_config: tests/ubuntu-16-nginx.config.yml
config_dir: /var/www/drupalvm/config
# Nginx and Drush make file test - Ubuntu 14.04.
- type: nginx-drush-make
distro: ubuntu1404
init: /sbin/init
run_opts: "--privileged"
local_config: tests/ubuntu-16-nginx.config.yml
config_dir: /var/www/drupalvm/config
# Nginx and Drush make file test - Ubuntu 12.04.
- type: nginx-drush-make
distro: ubuntu1204
init: /sbin/init
run_opts: "--privileged"
local_config: tests/ubuntu-16-nginx.config.yml
config_dir: /var/www/drupalvm/config
# PostgreSQL - Ubuntu 16.04.
- type: postgresql
distro: ubuntu1604
Expand All @@ -34,6 +79,24 @@ env:
config_dir: /var/www/drupalvm/config
DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/drush/drush/drush"
TEST_INSTALLED_EXTRAS: false
# PostgreSQL - Ubuntu 14.04.
- type: postgresql
distro: ubuntu1404
init: /sbin/init
run_opts: "--privileged"
local_config: tests/ubuntu-16-postgresql.config.yml
config_dir: /var/www/drupalvm/config
DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/drush/drush/drush"
TEST_INSTALLED_EXTRAS: false
# PostgreSQL - Ubuntu 12.04.
- type: postgresql
distro: ubuntu1204
init: /sbin/init
run_opts: "--privileged"
local_config: tests/ubuntu-16-postgresql.config.yml
config_dir: /var/www/drupalvm/config
DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/drush/drush/drush"
TEST_INSTALLED_EXTRAS: false
# Defaults - CentOS 7.
- type: centos
distro: centos7
Expand Down Expand Up @@ -67,6 +130,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}/${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 Down
2 changes: 2 additions & 0 deletions tests/php56.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
php_version: "5.6"
2 changes: 2 additions & 0 deletions tests/php71.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
php_version: "7.1"

0 comments on commit 927031c

Please sign in to comment.