@@ -4,7 +4,7 @@ language: php
44
55branches :
66 except :
7- - /^release-.*$/
7+ - /^release-\d+\.\d+\.\d+ .*$/
88 - /^ghgfk-.*$/
99
1010cache :
@@ -20,43 +20,77 @@ addons:
2020env :
2121 global :
2222 - TESTS_ZEND_LDAP_ONLINE_ENABLED=true
23+ - COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
2324
2425matrix :
2526 fast_finish : true
2627 include :
2728 - php : 5.5
2829 env :
29- - EXECUTE_CS_CHECK=true
30+ - DEPS=lowest
31+ - php : 5.5
32+ env :
33+ - DEPS=locked
34+ - CHECK_CS=true
35+ - php : 5.5
36+ env :
37+ - DEPS=latest
38+ - php : 5.6
39+ env :
40+ - DEPS=lowest
41+ - php : 5.6
42+ env :
43+ - DEPS=locked
44+ - TEST_COVERAGE=true
3045 - php : 5.6
3146 env :
32- - EXECUTE_TEST_COVERALLS=true
47+ - DEPS=latest
48+ - php : 7
49+ env :
50+ - DEPS=lowest
3351 - php : 7
52+ env :
53+ - DEPS=locked
54+ - php : 7
55+ env :
56+ - DEPS=latest
57+ - php : hhvm
58+ env :
59+ - DEPS=lowest
3460 - php : hhvm
61+ env :
62+ - DEPS=locked
63+ - php : hhvm
64+ env :
65+ - DEPS=latest
3566 allow_failures :
36- - php : 7
3767 - php : hhvm
3868
3969notifications :
4070 irc : " irc.freenode.org#zftalk.dev"
4171 email : false
4272
4373before_install :
44- - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
45- - composer self-update
46- - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
74+ - travis_retry composer self-update
75+ - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
4776
4877install :
49- - travis_retry composer install --no-interaction --ignore-platform-reqs
78+ - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then composer require $COMPOSER_ARGS --dev --no-update "phpunit/phpunit:^4"; fi
79+ - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
80+ - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
81+ - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require $COMPOSER_ARGS --dev satooshi/php-coveralls ; fi
82+ - travis_retry composer install $COMPOSER_ARGS
83+ - composer show --installed
5084
5185before_script :
5286 - phpenv config-add .ci/php.ini || return 0
5387 - .ci/OpenLDAP_run.sh
5488 - .ci/load_fixtures.sh
5589
5690script :
57- - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit -- coverage-clover clover.xml ; fi
58- - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
59- - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php- cs-fixer fix -v --diff --dry-run ; fi
91+ - if [[ $TEST_COVERAGE == 'true' ]]; then composer test- coverage ; fi
92+ - if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
93+ - if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
6094
6195after_script :
62- - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi
96+ - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
0 commit comments