Merge pull request #2528 from creative-commoners/pulls/4.5/php-7.4-builds

Update Travis config to include PHP 7.4 build, upgrade to Xenial
This commit is contained in:
Robbie Averill 2020-02-26 11:33:56 +11:00 committed by GitHub
commit e3b318a9e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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