@@ -2,18 +2,14 @@ sudo: false
22
33language : php 
44
5- branches :
6-   except :
7-     - /^release-\d+\.\d+\.\d+.*$/ 
8-     - /^ghgfk-.*$/ 
9- 
105cache :
116  directories :
127    - $HOME/.composer/cache 
138
149env :
1510  global :
16-     - COMPOSER_ARGS="--no-interaction --ignore-platform-reqs" 
11+     - COMPOSER_ARGS="--no-interaction" 
12+     - COVERAGE_DEPS="php-coveralls/php-coveralls" 
1713
1814matrix :
1915  include :
@@ -22,7 +18,7 @@ matrix:
2218        - DEPS=lowest 
2319    - php : 5.6 
2420        - DEPS=locked 
25-         - TEST_COVERAGE=true 
21+         - LEGACY_DEPS="phpunit/phpunit" 
2622    - php : 5.6 
2723      env :
2824        - DEPS=latest 
@@ -32,38 +28,48 @@ matrix:
3228    - php : 7 
3329      env :
3430        - DEPS=locked 
35-         - CHECK_CS=true 
31+         - LEGACY_DEPS="phpunit/phpunit" 
3632    - php : 7 
3733      env :
3834        - DEPS=latest 
39-     - php : hhvm 
35+     - php : 7.1 
4036      env :
4137        - DEPS=lowest 
42-     - php : hhvm 
38+     - php : 7.1 
4339      env :
4440        - DEPS=locked 
45-     - php : hhvm 
41+         - CS_CHECK=true 
42+         - TEST_COVERAGE=true 
43+     - php : 7.1 
44+       env :
45+         - DEPS=latest 
46+     - php : 7.2 
47+       env :
48+         - DEPS=lowest 
49+     - php : 7.2 
50+       env :
51+         - DEPS=locked 
52+     - php : 7.2 
4653      env :
4754        - DEPS=latest 
48-   allow_failures :
49-     - php : hhvm 
50- 
51- notifications :
52-   email : false 
5355
5456before_install :
5557  - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi 
5658
5759install :
60+   - travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs 
61+   - if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi 
5862  - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi 
5963  - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi 
60-   - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi 
61-   - travis_retry composer install $COMPOSER_ARGS 
62-   - composer show 
64+   - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi 
65+   - stty cols 120 && composer show 
6366
6467script :
65-   - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi 
66-   - if [[ $CHECK_CS  == 'true' ]]; then composer cs-check ; fi 
68+   - if [[ $TEST_COVERAGE == 'true' ]]; then composer run-script  test-coverage --timeout=400 -- --verbose  ; else composer run-script  test --timeout=300 -- --verbose  ; fi 
69+   - if [[ $CS_CHECK  == 'true' ]]; then composer cs-check ; fi 
6770
6871after_script :
69-   - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi 
72+   - if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi 
73+ 
74+ notifications :
75+   email : false 
0 commit comments