mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Enhancement / Update travis config to use Xenial
This commit is contained in:
parent
d4af206393
commit
be4ff49c12
19
.travis.yml
19
.travis.yml
@ -1,10 +1,11 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
dist: trusty
|
dist: xenial
|
||||||
|
|
||||||
before_install:
|
services:
|
||||||
- sudo apt-get update
|
- mysql
|
||||||
- sudo apt-get install chromium-chromedriver
|
- postgresql
|
||||||
|
- xvfb
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
@ -14,13 +15,13 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- tidy
|
- tidy
|
||||||
|
- chromium-chromedriver
|
||||||
|
- chromium-browser
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- TRAVIS_NODE_VERSION="6"
|
- TRAVIS_NODE_VERSION="6"
|
||||||
- COMPOSER_ROOT_VERSION="4.5.x-dev"
|
- COMPOSER_ROOT_VERSION="4.5.x-dev"
|
||||||
- DISPLAY=":99"
|
|
||||||
- XVFBARGS=":99 -ac -screen 0 1024x768x16"
|
|
||||||
- SS_BASE_URL="http://localhost:8080/"
|
- SS_BASE_URL="http://localhost:8080/"
|
||||||
- SS_ENVIRONMENT_TYPE="dev"
|
- SS_ENVIRONMENT_TYPE="dev"
|
||||||
|
|
||||||
@ -74,6 +75,11 @@ before_script:
|
|||||||
# Extra $PATH
|
# Extra $PATH
|
||||||
- export PATH=/usr/lib/chromium-browser/:$PATH
|
- export PATH=/usr/lib/chromium-browser/:$PATH
|
||||||
|
|
||||||
|
# Remove preinstalled Chrome (google-chrome)
|
||||||
|
# this would conflict with our chromium-browser installation
|
||||||
|
# and its version is incompatible with chromium-chromedriver
|
||||||
|
- sudo apt-get remove -y --purge google-chrome-stable || true
|
||||||
|
|
||||||
# Init PHP
|
# Init PHP
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- phpenv config-rm xdebug.ini || true
|
- phpenv config-rm xdebug.ini || true
|
||||||
@ -90,7 +96,6 @@ before_script:
|
|||||||
# Start behat services
|
# Start behat services
|
||||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi
|
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi
|
||||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then cp composer.lock artifacts/; fi
|
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then cp composer.lock artifacts/; fi
|
||||||
- if [[ $BEHAT_TEST ]]; then sh -e /etc/init.d/xvfb start; sleep 3; fi
|
|
||||||
- if [[ $BEHAT_TEST ]]; then (chromedriver > artifacts/chromedriver.log 2>&1 &); fi
|
- if [[ $BEHAT_TEST ]]; then (chromedriver > artifacts/chromedriver.log 2>&1 &); fi
|
||||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then (vendor/bin/serve --bootstrap-file vendor/silverstripe/cms/tests/behat/serve-bootstrap.php &> artifacts/serve.log &); sleep 3; fi
|
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then (vendor/bin/serve --bootstrap-file vendor/silverstripe/cms/tests/behat/serve-bootstrap.php &> artifacts/serve.log &); sleep 3; fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user