mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Update and expand Travis config
This commit is contained in:
parent
ade8047461
commit
f396ee7242
20
.travis.yml
20
.travis.yml
@ -1,5 +1,11 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
|
dist: xenial
|
||||||
|
|
||||||
|
services:
|
||||||
|
- mysql
|
||||||
|
- postgresql
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- COMPOSER_ROOT_VERSION="2.x-dev"
|
- COMPOSER_ROOT_VERSION="2.x-dev"
|
||||||
@ -7,19 +13,23 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1
|
env: DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1 RECIPE_VERSION="^1 --prefer-lowest"
|
||||||
- php: 7.0
|
- php: 7.0
|
||||||
env: DB=PGSQL PHPUNIT_TEST=1
|
env: DB=PGSQL PHPUNIT_TEST=1 RECIPE_VERSION="^1"
|
||||||
- php: 7.1
|
- php: 7.1
|
||||||
env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1
|
env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 RECIPE_VERSION="^4 --prefer-lowest"
|
||||||
|
- php: 7.2
|
||||||
|
env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1 RECIPE_VERSION="^4"
|
||||||
|
- php: 7.3
|
||||||
|
env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 RECIPE_VERSION="4.x-dev"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- phpenv config-rm xdebug.ini
|
- phpenv config-rm xdebug.ini
|
||||||
|
|
||||||
- composer install --prefer-dist
|
- composer install --prefer-dist
|
||||||
- composer require --prefer-dist --no-update silverstripe/recipe-cms:1.0.x-dev
|
- composer require --prefer-dist --no-update silverstripe/recipe-cms:$RECIPE_VERSION
|
||||||
- if [[ $DB == PGSQL ]]; then composer require --prefer-dist --no-update silverstripe/postgresql:2.0.x-dev; fi
|
- if [[ $DB == PGSQL ]]; then composer require --prefer-dist --no-update silverstripe/postgresql:^2; fi
|
||||||
- composer update
|
- composer update
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user