@@ -2,10 +2,6 @@ sudo: false
2
2
3
3
language : php
4
4
5
- branches :
6
- except :
7
- - /^release-.*$/
8
- - /^ghgfk-.*$/
9
5
cache :
10
6
directories :
11
7
- $HOME/.composer/cache
14
10
global :
15
11
- COMPOSER_ARGS="--no-interaction"
16
12
- COVERAGE_DEPS="php-coveralls/php-coveralls"
17
- - LEGACY_DEPS="phpunit/phpunit"
18
13
- TESTS_ZEND_HTTP_CLIENT_ONLINE=true
19
14
20
15
matrix :
@@ -25,8 +20,7 @@ matrix:
25
20
- php : 5.6
26
21
env :
27
22
- DEPS=locked
28
- - CS_CHECK=true
29
- - TEST_COVERAGE=true
23
+ - LEGACY_DEPS="phpunit/phpunit"
30
24
- php : 5.6
31
25
env :
32
26
- DEPS=latest
@@ -36,6 +30,7 @@ matrix:
36
30
- php : 7
37
31
env :
38
32
- DEPS=locked
33
+ - LEGACY_DEPS="phpunit/phpunit"
39
34
- php : 7
40
35
env :
41
36
- DEPS=latest
@@ -45,6 +40,8 @@ matrix:
45
40
- php : 7.1
46
41
env :
47
42
- DEPS=locked
43
+ - CS_CHECK=true
44
+ - TEST_COVERAGE=true
48
45
- php : 7.1
49
46
env :
50
47
- DEPS=latest
@@ -57,16 +54,13 @@ matrix:
57
54
- php : 7.2
58
55
env :
59
56
- DEPS=latest
60
- allow_failures :
61
- - php : 7.2
62
57
63
58
before_install :
64
- - if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
65
- - travis_retry composer self-update
59
+ - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
66
60
67
61
install :
68
62
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
69
- - if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
63
+ - if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
70
64
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
71
65
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
72
66
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
0 commit comments