@@ -6,38 +6,25 @@ branches:
6
6
except :
7
7
- /^release-.*$/
8
8
- /^ghgfk-.*$/
9
-
10
9
cache :
11
10
directories :
12
11
- $HOME/.composer/cache
13
- - $HOME/.local
14
- - zf-mkdoc-theme
12
+
13
+ env :
14
+ global :
15
+ - COMPOSER_ARGS="--no-interaction"
16
+ - COVERAGE_DEPS="satooshi/php-coveralls"
17
+ - LEGACY_DEPS="phpunit/phpunit"
15
18
16
19
matrix :
17
- fast_finish : true
18
20
include :
19
- - php : 5.5
20
- env :
21
- - DEPS=lowest
22
- - php : 5.5
23
- env :
24
- - DEPS=locked
25
- - DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
26
- - PATH="$HOME/.local/bin:$PATH"
27
- - SITE_URL : https://zendframework.github.io/zend-router
28
- - GH_USER_NAME : " Matthew Weier O'Phinney"
29
- -
GH_USER_EMAIL :
[email protected]
30
- - GH_REF : github.com/zendframework/zend-router.git
31
- - secure : " QfhiZVZvQD1Z7aiepuUyWhVaXG+Z/fcLXjJgleWl9Kh2h805oVP2AyJaUi88eFzOYSuKn6/Zm8sRge+RRHO0d76fZSpA5vSDflWak01qIpw9iNREEIikoDGLgWPCyBQE5ngiypUv7B0MaM2jSiuIid/lMB7UO/1paUVHSMxVtUbNZbwVf1wmMSICEIm0ZoPl0J+mkg48pWluqntc+KOUuOwtG84N9CbG9jNnVmz40gzq/rodJpOZ03wjM9AoEn/iVj6+UMtA6kpF+6BZAPP9pRQEWzb52RzLf1tIFR7ZyC6GdQfMTjWu5FCllnZAUiH+G2L/bq52YxGJjWw5nf8qnb7sWubPYjd6lMAxvqZMbj85Lgv8lernHxa1uJReDY7Nu9OuF6CvrA1EYIxLAH44rQhMd6D1fE3WtbG7xLi/jU3bKFwKWKpRjb2lQIK2vmPHiuVlZ5ggJhh2M9hftMmLHedFYSr+ZzDhAvyMMv5vaWWq/1sWu6OSUocm+aqbx9vnYR8VDNupdmYP4x6m8u75WAgAbb7TIIyOB/piM3H3pGr/gffp3ZA2Wa4+TY2hepStO3iPrEJ7d/rtT76sIdBjO0q8X3eQFAlwCLavsdzEsurrANBMkOyGDOdJEwzDaRyTRntJ6F3/0vHm0QJzCWi7Xe8wYp8/3jRd0BJeg/eer5o="
32
- - php : 5.5
33
- env :
34
- - DEPS=latest
35
21
- php : 5.6
36
22
env :
37
23
- DEPS=lowest
38
24
- php : 5.6
39
25
env :
40
26
- DEPS=locked
27
+ - CS_CHECK=true
41
28
- TEST_COVERAGE=true
42
29
- php : 5.6
43
30
env :
@@ -48,49 +35,48 @@ matrix:
48
35
- php : 7
49
36
env :
50
37
- DEPS=locked
51
- - CHECK_CS=true
52
38
- php : 7
53
39
env :
54
40
- DEPS=latest
55
- - php : hhvm
41
+ - php : 7.1
42
+ env :
43
+ - DEPS=lowest
44
+ - php : 7.1
45
+ env :
46
+ - DEPS=locked
47
+ - php : 7.1
48
+ env :
49
+ - DEPS=latest
50
+ - php : 7.2
56
51
env :
57
52
- DEPS=lowest
58
- - php : hhvm
53
+ - php : 7.2
59
54
env :
60
55
- DEPS=locked
61
- - php : hhvm
56
+ - php : 7.2
62
57
env :
63
58
- DEPS=latest
64
59
allow_failures :
65
- - php : hhvm
66
-
67
- env :
68
- global :
69
- - COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
70
-
71
- notifications :
72
- irc : " irc.freenode.org#zftalk.dev"
73
- email : false
60
+ - php : 7.2
74
61
75
62
before_install :
63
+ - if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
76
64
- travis_retry composer self-update
77
- - if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
78
- - if [[ $DEPS == 'locked' ]]; then composer validate; fi
79
65
80
66
install :
67
+ - travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
68
+ - if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
81
69
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
82
70
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
83
- - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --no-update --dev $COMPOSER_ARGS satooshi/php-coveralls ; fi
84
- - travis_retry composer install $COMPOSER_ARGS
85
- - composer show --installed
71
+ - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
72
+ - stty cols 120 && composer show
86
73
87
74
script :
88
75
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
89
- - if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
90
- - if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then travis_retry curl -sSL https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh | bash ; fi
76
+ - if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
91
77
92
78
after_script :
93
- - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
79
+ - if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
94
80
95
- after_success :
96
- - if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi
81
+ notifications :
82
+ email : false
0 commit comments