Skip to content

Commit

Permalink
Switch back to PHPUnit 4.8 if PHP < 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
danhunsaker committed Aug 16, 2018
1 parent 1e70a14 commit 7c9dbad
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Setup build matrix
language: php
php:
- '7.2'
Expand All @@ -8,23 +7,28 @@ php:
- '5.5'
- '5.4'
- hhvm

matrix:
allow_failures:
- php: '5.5'
- php: '5.4'
- php: hhvm

services:
- redis-server

env:
matrix:
- PREFER_LOWEST="--prefer-lowest"
- PREFER_LOWEST=""

# Dependencies
services:
- redis-server

before_install:
- composer self-update

install:
- |
if [[ "$(phpenv version-name)" < "5.6" ]]
then
travis_retry composer require --no-interaction --prefer-source $PREFER_LOWEST 'phpunit/phpunit:^4.8'
fi
- travis_retry composer update --no-interaction --prefer-source $PREFER_LOWEST

0 comments on commit 7c9dbad

Please sign in to comment.