@@ -9,30 +9,60 @@ branches:
99 - /^analysis-.*$/
1010 - /^patch-.*$/
1111
12- php :
13- - 5.5
14- - 5.6
15- - 7.0
16- - 7.1
17-
1812env :
1913 global :
2014 - TEST_COMMAND="composer test"
2115
2216matrix :
23- fast_finish : true
24- include :
25- - php : 5.5
26- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
27- - php : hhvm
28- dist : trusty
17+ fast_finish : true
18+ include :
19+ # Test with lowest dependencies
20+ - php : 7.1
21+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
22+ - php : 5.5
23+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
24+
25+ # Test the latest stable release
26+ - php : 5.5
27+ - php : 5.6
28+ - php : 7.0
29+ - php : 7.1
30+ - php : 7.2
31+ env : COVERAGE=true TEST_COMMAND="composer test-ci"
32+
33+ # Force some major versions of Symfony
34+ - php : 7.2
35+ env : DEPENDENCIES="dunglas/symfony-lock:^3"
36+ - php : 7.2
37+ env : DEPENDENCIES="dunglas/symfony-lock:^4"
38+
39+ # Latest commit to master
40+ - php : 7.2
41+ env : STABILITY="dev"
42+
43+ allow_failures :
44+ # Dev-master is allowed to fail.
45+ - env : STABILITY="dev"
46+
47+ before_install :
48+ - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
49+ - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
50+ - if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
2951
3052install :
31- - travis_retry composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
53+ # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
54+ - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
55+ - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
56+ - vendor/bin/simple-phpunit install
3257
3358script :
59+ - composer validate --strict --no-check-lock
3460 - $TEST_COMMAND
3561
3662after_success :
3763 - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
3864 - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
65+
66+ after_script :
67+ - wget http://tnyholm.se/reporter.phar
68+ - php reporter.phar build:upload
0 commit comments