Skip to content

Commit fb1be62

Browse files
committed
Fix Travis builds for 1.0 and 1.1 recipes, add PHP 7.3 and various core recipe versions
1 parent 98ba1b1 commit fb1be62

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ env:
77
matrix:
88
include:
99
- php: 5.6
10-
env: DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1
10+
env: DB=MYSQL RECIPE_VERSION=1.0.x-dev PHPCS_TEST=1 PHPUNIT_TEST=1
1111
- php: 7.0
12-
env: DB=MYSQL PHPUNIT_TEST=1
12+
env: DB=MYSQL RECIPE_VERSION=1.1.x-dev PHPUNIT_TEST=1
1313
- php: 7.1
14-
env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 CMS=1
14+
env: DB=MYSQL RECIPE_VERSION=4.2.x-dev PHPUNIT_COVERAGE_TEST=1
1515
- php: 7.2
16-
env: DB=MYSQL PHPUNIT_TEST=1
16+
env: DB=MYSQL RECIPE_VERSION=4.3.x-dev PHPUNIT_TEST=1
17+
- php: 7.3
18+
env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_TEST=1
1719

1820
before_script:
1921
# Init PHP
@@ -22,13 +24,11 @@ before_script:
2224

2325
# Install composer dependencies
2426
- composer validate
25-
- if [[ $CMS ]]; then composer require --no-update silverstripe/recipe-cms 1.0.x-dev; fi
26-
- if [[ ! $CMS ]]; then composer require --no-update silverstripe/recipe-core 1.0.x-dev; fi
27+
- composer require --no-update silverstripe/recipe-cms:"$RECIPE_VERSION"
2728
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
2829

2930
script:
3031
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
31-
# Coverage runs also run with the CMS
3232
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml --bootstrap=vendor/silverstripe/cms/tests/bootstrap.php; fi
3333
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs code/ tests/ *.php; fi
3434

0 commit comments

Comments
 (0)