mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Update Travis config to include PHP 7.4 build, upgrade to Xenial
This commit is contained in:
parent
9cb96bfc52
commit
1b3bf47bbc
20
.travis.yml
20
.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="10"
|
- TRAVIS_NODE_VERSION="10"
|
||||||
- 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"
|
||||||
|
|
||||||
@ -33,6 +34,8 @@ matrix:
|
|||||||
env: DB=PGSQL PHPUNIT_TEST=1
|
env: DB=PGSQL PHPUNIT_TEST=1
|
||||||
- php: 7.3
|
- php: 7.3
|
||||||
env: DB=MYSQL PDO=1 PHPUNIT_TEST=1
|
env: DB=MYSQL PDO=1 PHPUNIT_TEST=1
|
||||||
|
- php: 7.4
|
||||||
|
env: DB=MYSQL PHPUNIT_TEST=1
|
||||||
- php: 7.1
|
- php: 7.1
|
||||||
env: DB=MYSQL BEHAT_TEST=1
|
env: DB=MYSQL BEHAT_TEST=1
|
||||||
- php: 7.2
|
- php: 7.2
|
||||||
@ -59,6 +62,11 @@ before_script:
|
|||||||
# Install NPM dependencies
|
# Install NPM dependencies
|
||||||
- if [[ $NPM_TEST ]]; then nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION && npm install -g yarn && yarn install --network-concurrency 1 && yarn run build; fi
|
- if [[ $NPM_TEST ]]; then nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION && npm install -g yarn && yarn install --network-concurrency 1 && yarn run build; fi
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Start behat services
|
# Start behat services
|
||||||
- if [[ $BEHAT_TEST ]]; then mkdir artifacts; fi
|
- if [[ $BEHAT_TEST ]]; then mkdir artifacts; fi
|
||||||
- if [[ $BEHAT_TEST ]]; then cp composer.lock artifacts/; fi
|
- if [[ $BEHAT_TEST ]]; then cp composer.lock artifacts/; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user