Travis 4.6

This commit is contained in:
Steve Boyd 2020-06-23 13:26:34 +12:00
parent aa6f0fd66c
commit 1ee1db3298

View File

@ -20,8 +20,10 @@ addons:
env: env:
global: global:
- TRAVIS_NODE_VERSION="10"
- COMPOSER_ROOT_VERSION="4.6.x-dev" - COMPOSER_ROOT_VERSION="4.6.x-dev"
- TRAVIS_NODE_VERSION="10"
- 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"
@ -29,19 +31,15 @@ matrix:
fast_finish: true fast_finish: true
include: include:
- php: 7.1 - php: 7.1
env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1 env: DB=MYSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=1 PHPCS_TEST=1 PDO=1
- php: 7.2 - php: 7.2
env: DB=PGSQL PHPUNIT_TEST=1 env: DB=PGSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_COVERAGE_TEST=1
- php: 7.3 - php: 7.3
env: DB=MYSQL PDO=1 PHPUNIT_TEST=1 env: DB=MYSQL RECIPE_VERSION=4.6.x-dev BEHAT_TEST=1
- php: 7.3
env: DB=MYSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=1 NPM_TEST=1
- php: 7.4 - php: 7.4
env: DB=MYSQL PHPUNIT_TEST=1 env: DB=MYSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=1
- php: 7.1
env: DB=MYSQL BEHAT_TEST=1
- php: 7.2
env: NPM_TEST=1
- php: 7.3
env: DB=MYSQL PHPUNIT_TEST=1
before_script: before_script:
# Extra $PATH # Extra $PATH
@ -55,8 +53,10 @@ before_script:
# Install composer dependencies # Install composer dependencies
- composer validate - composer validate
- composer require --no-update silverstripe/recipe-testing:^1 silverstripe/recipe-cms:4.6.x-dev - composer require --no-update silverstripe/recipe-cms:$RECIPE_VERSION silverstripe/recipe-testing:^1
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.x-dev; fi # Fix for running phpunit 5 on php 7.4+
- composer require --no-update sminnee/phpunit-mock-objects:^3
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:^2; fi
- composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile - composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
# Install NPM dependencies # Install NPM dependencies