66 directories :
77 - $HOME/.composer/cache/files
88
9- php :
10- - 7.0
11- - 7.1
12-
139env :
1410 global :
1511 - TEST_COMMAND="composer test"
16- matrix :
17- - SYMFONY_VERSION=3.2.*
18- - SYMFONY_VERSION=2.8.*
19- - SYMFONY_VERSION=2.7.*
12+ - SYMFONY_PHPUNIT_VERSION="6.3"
2013
2114branches :
2215 except :
@@ -25,18 +18,53 @@ branches:
2518matrix :
2619 fast_finish : true
2720 include :
21+ # Test with lowest dependencies
22+ - php : 7.2
23+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
2824 - php : 7.0
29- env : SYMFONY_VERSION="3.2.* graphaware/neo4j-php-ogm:^1.0" COVERAGE=true TEST_COMMAND="composer test-ci"
25+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
26+
27+ # Test the latest stable release
3028 - php : 7.0
31- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_VERSION=2.7.*
29+ - php : 7.1
30+ - php : 7.2
31+ env : COVERAGE=true TEST_COMMAND="composer test-ci" DEPENDENCIES="graphaware/neo4j-php-ogm:^1.0@rc"
32+
33+ # Force some major versions of Symfony
34+ - php : 7.2
35+ env : DEPENDENCIES="dunglas/symfony-lock:^2"
36+ - php : 7.2
37+ env : DEPENDENCIES="dunglas/symfony-lock:^3"
38+ - php : 7.2
39+ env : DEPENDENCIES="dunglas/symfony-lock:^4"
40+
41+ # Latest commit to master
42+ - php : 7.2
43+ env : STABILITY="dev"
44+
45+ allow_failures :
46+ # Dev-master is allowed to fail.
47+ - env : STABILITY="dev"
48+
49+ before_install :
50+ - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
51+ - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
52+ - if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
3253
3354install :
34- - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
35- - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
55+ # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
56+ - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
57+ - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
58+ - vendor/bin/simple-phpunit install
3659
3760script :
61+ - composer validate --strict --no-check-lock
3862 - $TEST_COMMAND
3963
4064after_success :
41- - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
42- - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
65+ - if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
66+ - if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
67+
68+ after_script :
69+ - wget http://tnyholm.se/reporter.phar
70+ - php reporter.phar build:upload
0 commit comments