Update travis

This commit is contained in:
Steve Boyd 2020-06-23 15:09:45 +12:00
parent 3d50b3f9ec
commit 0480075392
1 changed files with 14 additions and 17 deletions

View File

@ -4,35 +4,30 @@ dist: xenial
services:
- postgresql
-
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.1
env:
global:
- DB="PGSQL"
- DB=PGSQL
matrix:
fast_finish: true
include:
- php: 7.1
env:
- PHPUNIT_TEST=framework
- php: 7.2
env:
- PHPUNIT_TEST=framework
- php: 7.3
env:
- PHPUNIT_TEST=framework
env: RECIPE_VERSION=4.5.x-dev PHPUNIT_TEST=postgresql PHPCS_TEST=1
- php: 7.1
env:
- PHPUNIT_TEST=postgresql
- PHPCS_TEST=1
env: RECIPE_VERSION=4.5.x-dev PHPUNIT_TEST=framework
- php: 7.2
env: RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=framework
- php: 7.3
env: RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=framework
- php: 7.4
env: RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=postgresql
- php: 7.4
env: RECIPE_VERSION=4.x-dev PHPUNIT_TEST=framework
before_script:
# Init PHP
@ -43,7 +38,9 @@ before_script:
# Install composer dependencies
- composer validate
- composer require --no-update silverstripe/recipe-cms:4.3.x-dev
- composer require --no-update silverstripe/recipe-cms:$RECIPE_VERSION
# Fix for running phpunit 5 on php 7.4+
- composer require --no-update sminnee/phpunit-mock-objects:^3
- composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi