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

Commit 9a01a1c

Browse files
committed
Ensure PHP 5.6 environments can install dependencies
Updates Travis configuration to add LEGACY_DEPS to each PHP 5.6 env, asking to update to usable versions of phpunit/phpunit and malukenho/docheader.
1 parent f593f02 commit 9a01a1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

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

1514
matrix:
1615
include:
1716
- php: 5.6
1817
env:
1918
- DEPS=lowest
19+
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
2020
- php: 5.6
2121
env:
2222
- DEPS=locked
23+
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
2324
- CS_CHECK=true
2425
- TEST_COVERAGE=true
2526
- php: 5.6
2627
env:
2728
- DEPS=latest
29+
- LEGACY_DEPS="phpunit/phpunit malukenho/docheader"
2830
- php: 7
2931
env:
3032
- DEPS=lowest
@@ -61,7 +63,7 @@ before_install:
6163

6264
install:
6365
- 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
66+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
6567
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
6668
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
6769
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi

0 commit comments

Comments
 (0)