@@ -6,38 +6,25 @@ branches:
66 except :
77 - /^release-.*$/
88 - /^ghgfk-.*$/
9-
109cache :
1110 directories :
1211 - $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"
1518
1619matrix :
17- fast_finish : true
1820 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
3521 - php : 5.6
3622 env :
3723 - DEPS=lowest
3824 - php : 5.6
3925 env :
4026 - DEPS=locked
27+ - CS_CHECK=true
4128 - TEST_COVERAGE=true
4229 - php : 5.6
4330 env :
@@ -48,49 +35,48 @@ matrix:
4835 - php : 7
4936 env :
5037 - DEPS=locked
51- - CHECK_CS=true
5238 - php : 7
5339 env :
5440 - 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
5651 env :
5752 - DEPS=lowest
58- - php : hhvm
53+ - php : 7.2
5954 env :
6055 - DEPS=locked
61- - php : hhvm
56+ - php : 7.2
6257 env :
6358 - DEPS=latest
6459 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
7461
7562before_install :
63+ - if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
7664 - 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
7965
8066install :
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
8169 - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
8270 - 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
8673
8774script :
8875 - 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
9177
9278after_script :
93- - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
79+ - if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
9480
95- after_success :
96- - if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi
81+ notifications :
82+ email : false
0 commit comments