Skip to content

Commit b7a2e22

Browse files
jrfnlgrogy
authored andcommitted
Travis: allow for installing PHPUnit 7 on PHP 8
1 parent 96fad8f commit b7a2e22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ cache:
3333
- $HOME/.composer/cache
3434

3535
before_script:
36-
- composer install --no-interaction --prefer-source
36+
- |
37+
if [[ $TRAVIS_PHP_VERSION != "nightly" ]]; then
38+
composer install --no-suggest --no-interaction
39+
else
40+
# Ignore platform requirements to allow PHPUnit to install on PHP 8.
41+
composer install --no-suggest --no-interaction --ignore-platform-reqs
42+
fi
3743
3844
script:
3945
- ant phplint

0 commit comments

Comments
 (0)