File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ matrix:
17
17
- php : 7.0
18
18
env : SYMFONY_VERSION=3.2.*
19
19
- php : 7.1
20
- env : SYMFONY_VERSION=3.3.*
20
+ env : SYMFONY_VERSION=3.3.* PHPUNIT_FLAGS="-d xdebug.max_nesting_level=1000 --coverage-clover=build/logs/clover.xml"
21
21
- php : hhvm
22
22
- php : nightly
23
23
allow_failures :
@@ -26,18 +26,19 @@ matrix:
26
26
cache :
27
27
directories :
28
28
- $HOME/.composer/cache
29
+ - $HOME/.php_cs.cache
29
30
30
31
before_install :
31
- - if [[ "$TRAVIS_PHP_VERSION" != "5.6 " && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini || true; fi
32
+ - if [[ "$TRAVIS_PHP_VERSION" != "7.1 " && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini || true; fi
32
33
- composer selfupdate
33
34
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" "symfony/framework-bundle:${SYMFONY_VERSION}" --dev --no-update; fi;
34
35
35
- install : composer update --prefer-dist --no-interaction
36
+ install : composer update --prefer-source --no-interaction --optimize-autoloader
36
37
37
38
script :
38
- - if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then bin/phpunit -d xdebug.max_nesting_level=1000 -- debug --coverage-clover=build/logs/clover.xml; else bin/phpunit --debug; fi
39
+ - bin/phpunit -- debug ${PHPUNIT_FLAGS}
39
40
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then bin/php-cs-fixer fix --diff --dry-run -v; fi;
40
41
41
42
after_script :
42
- - if [ "$TRAVIS_PHP_VERSION" == "5.6 " ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
43
- - if [ "$TRAVIS_PHP_VERSION" == "5.6 " ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi
43
+ - if [ "$TRAVIS_PHP_VERSION" == "7.1 " ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
44
+ - if [ "$TRAVIS_PHP_VERSION" == "7.1 " ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi
You can’t perform that action at this time.
0 commit comments