Skip to content

Commit 2f5b212

Browse files
committed
update the Travis CI configuration
* use the faster container based infrastructure * add a build job with the nightly PHP 7 version * report a result as fast as possible (either when a mandatory build fails or when only builds are not finished that are allowed to fail) * reduce the build matrix (run tests with different Symfony and PHPUnit versions only with PHP 5.6) * run `composer install` instead of `composer update` since the lock file is not committed to the repository anymore
1 parent f752d42 commit 2f5b212

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.travis.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
1+
sudo: false
2+
13
language: php
24

35
php:
46
- 5.3
57
- 5.4
68
- 5.5
79
- 5.6
10+
- nightly
811
- hhvm
912

1013
matrix:
14+
fast_finish: true
1115
include:
1216
- php: 5.3
1317
env: deps="low"
18+
- php: 5.6
19+
env: SYMFONY_VERSION=2.4.* PHPUNIT_VERSION=~3.7
20+
- php: 5.6
21+
env: SYMFONY_VERSION=2.0.* PHPUNIT_VERSION=~4.0
22+
- php: 5.6
23+
env: SYMFONY_VERSION=2.1.* PHPUNIT_VERSION=~4.0
24+
- php: 5.6
25+
env: SYMFONY_VERSION=2.2.* PHPUNIT_VERSION=~4.0
26+
- php: 5.6
27+
env: SYMFONY_VERSION=2.3.* PHPUNIT_VERSION=~4.0
28+
- php: 5.6
29+
env: SYMFONY_VERSION=2.4.* PHPUNIT_VERSION=~4.0
1430
allow_failures:
1531
- php: hhvm
1632

17-
env:
18-
global:
19-
- deps=""
20-
matrix:
21-
- SYMFONY_VERSION=2.4.* PHPUNIT_VERSION=~3.7
22-
- SYMFONY_VERSION=2.0.* PHPUNIT_VERSION=~4.0
23-
- SYMFONY_VERSION=2.1.* PHPUNIT_VERSION=~4.0
24-
- SYMFONY_VERSION=2.2.* PHPUNIT_VERSION=~4.0
25-
- SYMFONY_VERSION=2.3.* PHPUNIT_VERSION=~4.0
26-
- SYMFONY_VERSION=2.4.* PHPUNIT_VERSION=~4.0
27-
2833
before_script:
2934
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update "symfony/dependency-injection:${SYMFONY_VERSION}"; fi
3035
- if [ "$PHPUNIT_VERSION" != "" ]; then composer require --no-update "phpunit/phpunit:${PHPUNIT_VERSION}"; fi
3136
- if [ "$deps" = "low" ]; then composer update --prefer-lowest; fi
32-
- if [ "$deps" = "" ]; then composer update; fi
37+
- if [ "$deps" = "" ]; then composer install; fi
3338

3439
notifications:
3540

0 commit comments

Comments
 (0)