Skip to content

Commit c8517d3

Browse files
committed
Merge pull request #377 from FriendsOfSymfony/TRAVIS
Improve travis configuration
2 parents 2cf6dd8 + 03cec15 commit c8517d3

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
@@ -8,7 +8,7 @@ php:
88
- 5.5
99
- 5.6
1010
- hhvm
11-
- nightly
11+
- 7.0
1212

1313
matrix:
1414
fast_finish: true
@@ -22,20 +22,20 @@ matrix:
2222
- php: 5.6
2323
env: SYMFONY_VERSION=2.8.*
2424
- php: 5.6
25-
env: SYMFONY_VERSION=3.0.*
25+
env: SYMFONY_VERSION=3.0.* COVERAGE=true
2626
allow_failures:
2727
- php: hhvm
28-
- php: nightly
28+
- php: 7.0
2929

3030
cache:
3131
directories:
32-
- vendor
33-
- $HOME/.composer/cache
32+
- $HOME/.composer/cache/files
3433

3534
before_script:
35+
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
3636
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
37-
- composer selfupdate
37+
- composer self-update
3838
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
3939
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
4040

41-
phpunit: phpunit --coverage-text
41+
phpunit: if [ "$COVERAGE" == true ]; then phpunit --coverage-text; else phpunit; fi

0 commit comments

Comments
 (0)