Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 95b0158

Browse files
committed
Updated Travis CI configuration
- updated legacy dependencies - removed allow_failures on PHP 7.2 - removed composer self-update - moved cs-check and coverage to run on PHP 7.1 with locked deps
1 parent 341260c commit 95b0158

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env:
1010
global:
1111
- COMPOSER_ARGS="--no-interaction"
1212
- COVERAGE_DEPS="satooshi/php-coveralls"
13-
- LEGACY_DEPS="phpunit/phpunit"
1413

1514
matrix:
1615
include:
@@ -20,6 +19,7 @@ matrix:
2019
- php: 5.6
2120
env:
2221
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
2323
- php: 5.6
2424
env:
2525
- DEPS=latest
@@ -29,8 +29,7 @@ matrix:
2929
- php: 7
3030
env:
3131
- DEPS=locked
32-
- CS_CHECK=true
33-
- TEST_COVERAGE=true
32+
- LEGACY_DEPS="phpunit/phpunit"
3433
- php: 7
3534
env:
3635
- DEPS=latest
@@ -40,6 +39,8 @@ matrix:
4039
- php: 7.1
4140
env:
4241
- DEPS=locked
42+
- CS_CHECK=true
43+
- TEST_COVERAGE=true
4344
- php: 7.1
4445
env:
4546
- DEPS=latest
@@ -52,16 +53,13 @@ matrix:
5253
- php: 7.2
5354
env:
5455
- DEPS=latest
55-
allow_failures:
56-
- php: 7.2
5756

5857
before_install:
5958
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
60-
- travis_retry composer self-update
6159

6260
install:
6361
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
64-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
62+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
6563
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
6664
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
6765
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi

0 commit comments

Comments
 (0)