@@ -5,6 +5,7 @@ sudo: false
55cache :
66 directories :
77 - $HOME/.composer/cache/files
8+ - $HOME/symfony-bridge/.phpunit
89
910matrix :
1011 include :
@@ -13,9 +14,9 @@ matrix:
1314 - php : 5.5
1415 - php : 5.6
1516 - php : 5.3
16- env : deps=low
17+ env : COMPOSER_OPTIONS="--prefer-lowest --prefer-stable" SYMFONY_DEPRECATIONS_HELPER=weak
1718 - php : 5.6
18- env : deps=high
19+ env : COMPOSER_OPTIONS="" SYMFONY_DEPRECATIONS_HELPER=weak
1920 - php : 7.0
2021 - php : hhvm
2122 allow_failures :
@@ -25,7 +26,9 @@ matrix:
2526env :
2627 global :
2728 - deps=no
28- - SYMFONY_DEPRECATIONS_HELPER=weak
29+ - SYMFONY_DEPRECATIONS_HELPER=strict
30+ - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
31+ - COMPOSER_OPTIONS="--prefer-stable"
2932
3033before_install :
3134 - if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;
@@ -37,10 +40,8 @@ before_install:
3740
3841install :
3942 - if [ "$TRAVIS_PHP_VERSION" != "5.3" ]; then composer require --no-update zendframework/zend-diactoros; fi;
40- - if [ "$deps" = "no" ]; then export SYMFONY_DEPRECATIONS_HELPER=strict; fi;
41- - if [ "$deps" = "no" ]; then composer --prefer-source install; fi;
42- - if [ "$deps" = "high" ]; then composer --prefer-source update; fi;
43- - if [ "$deps" = "low" ]; then composer --prefer-source --prefer-lowest --prefer-stable update; fi;
43+ - composer update --prefer-source $COMPOSER_OPTIONS
44+ - vendor/bin/simple-phpunit install
4445
4546script :
46- - phpunit
47+ - vendor/bin/simple- phpunit
0 commit comments