Skip to content

Commit

Permalink
Update to Xenial, expand matrix to cover new CMS releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Garion Herman committed Nov 20, 2019
1 parent dc31f70 commit 0c67095
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
language: php

dist: xenial

services:
- mysql
- postgresql

env:
global:
- COMPOSER_ROOT_VERSION=2.0.x-dev

matrix:
include:
- php: 5.6
env: DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1
env: DB=MYSQL PHPUNIT_TEST=1 RECIPE_VERSION="^1 --prefer-lowest"
- php: 7.0
env: DB=MYSQL PHPUNIT_TEST=1
env: DB=MYSQL PHPUNIT_TEST=1 RECIPE_VERSION="^1"
- php: 7.1
env: DB=PGSQL PHPUNIT_COVERAGE_TEST=1
env: DB=PGSQL PHPUNIT_TEST=1 RECIPE_VERSION="^4 --prefer-lowest"
- php: 7.2
env: DB=PGSQL PHPUNIT_COVERAGE_TEST=1 RECIPE_VERSION="^4"
- php: 7.3
env: DB=PGSQL PHPCS_TEST=1 PHPUNIT_TEST=1 RECIPE_VERSION="4.x-dev"

before_script:
# Init PHP
Expand All @@ -20,9 +30,10 @@ before_script:

# Install composer dependencies
- composer validate
- composer require --no-update silverstripe/recipe-core:1.0.x-dev
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql 2.0.x-dev; fi
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
- composer require --no-update silverstripe/recipe-core:$RECIPE_VERSION
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:^2; fi
- if [[ $PHPCS_TEST ]]; then composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile; fi
- if [[ ! $PHPCS_TEST ]]; then composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile; fi

script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
Expand Down

0 comments on commit 0c67095

Please sign in to comment.