Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Updates travis config to use a matrix so we can control the version o…
Browse files Browse the repository at this point in the history
…f phpunit being downloaded
  • Loading branch information
craigpaul committed Sep 19, 2019
1 parent 5b4ce61 commit 62623ce
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .travis.yml
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

0 comments on commit 62623ce

Please sign in to comment.