@@ -4,7 +4,7 @@ language: php
4
4
5
5
branches :
6
6
except :
7
- - /^release-.*$/
7
+ - /^release-\d+\.\d+\.\d+ .*$/
8
8
- /^ghgfk-.*$/
9
9
10
10
cache :
@@ -20,43 +20,77 @@ addons:
20
20
env :
21
21
global :
22
22
- TESTS_ZEND_LDAP_ONLINE_ENABLED=true
23
+ - COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
23
24
24
25
matrix :
25
26
fast_finish : true
26
27
include :
27
28
- php : 5.5
28
29
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
30
45
- php : 5.6
31
46
env :
32
- - EXECUTE_TEST_COVERALLS=true
47
+ - DEPS=latest
48
+ - php : 7
49
+ env :
50
+ - DEPS=lowest
33
51
- php : 7
52
+ env :
53
+ - DEPS=locked
54
+ - php : 7
55
+ env :
56
+ - DEPS=latest
57
+ - php : hhvm
58
+ env :
59
+ - DEPS=lowest
34
60
- php : hhvm
61
+ env :
62
+ - DEPS=locked
63
+ - php : hhvm
64
+ env :
65
+ - DEPS=latest
35
66
allow_failures :
36
- - php : 7
37
67
- php : hhvm
38
68
39
69
notifications :
40
70
irc : " irc.freenode.org#zftalk.dev"
41
71
email : false
42
72
43
73
before_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
47
76
48
77
install :
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
50
84
51
85
before_script :
52
86
- phpenv config-add .ci/php.ini || return 0
53
87
- .ci/OpenLDAP_run.sh
54
88
- .ci/load_fixtures.sh
55
89
56
90
script :
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
60
94
61
95
after_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