Skip to content

Commit 209db2c

Browse files
committed
Add various enhancements to the Travis script
* Add tests against supported LTS versions of Symfony * Add a dedicated build for style checking
1 parent 776dadc commit 209db2c

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.travis.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,36 @@ cache:
88

99
php:
1010
- 5.5
11-
- 5.6
11+
- 7.0
1212
- nightly
1313
- hhvm
1414

1515
matrix:
16-
allow_failures:
17-
- php: nightly
1816
fast_finish: true
1917
include:
2018
- php: 5.6
21-
env: DEPENDENCIES=dev
19+
env: SYMFONY_VERSION=2.7.*
20+
- php: 5.6
21+
env: SYMFONY_VERSION=2.8.*@dev
22+
- php: 5.6
23+
env: SYMFONY_VERSION="3.0.*@dev"
24+
- php: 7.0
2225

23-
before_script:
26+
allow_failures:
27+
- php: 7.0
28+
- php: nightly
29+
- env: SYMFONY_VERSION=2.8.*@dev
30+
- env: SYMFONY_VERSION="3.0.*@dev"
31+
32+
before_install:
2433
- composer self-update
25-
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ] && [ "$DEPENDENCIES" != "dev" ]; then wget http://get.sensiolabs.org/php-cs-fixer.phar; fi;
26-
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
34+
- if [ "$SYMFONY_VERSION" != "" ]; then
35+
composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update;
36+
fi;
2737

2838
install:
29-
- composer install
39+
- composer update --no-interaction --prefer-dist
3040

3141
script:
32-
- vendor/bin/behat
3342
- vendor/bin/phpunit
34-
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ] && [ "$DEPENDENCIES" != "dev" ]; then php php-cs-fixer.phar fix --no-interaction --dry-run --diff -vvv; fi;
43+
- vendor/bin/behat

0 commit comments

Comments
 (0)