This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates travis config to use a matrix so we can control the version o…
…f phpunit being downloaded
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
matrix: | ||
include: | ||
- php: 5.6 | ||
env: PHPUNIT='5.7.*' | ||
- php: 7.0 | ||
env: PHPUNIT='6.5.*' | ||
- php: 7.1 | ||
env: PHPUNIT='7.5.*' | ||
fast_finish: true | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install --no-interaction | ||
- composer config discard-changes true | ||
|
||
script: phpunit | ||
before_install: | ||
- travis_retry composer self-update | ||
- travis_retry composer require "phpunit/phpunit:${PHPUNIT}" --no-interaction --no-update | ||
|
||
matrix: | ||
fast_finish: true | ||
install: | ||
- travis_retry composer install --prefer-dist --no-interaction --no-suggest | ||
|
||
script: phpunit |