Skip to content

Commit

Permalink
update travis to test more evenly across different versions of php
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Hickson committed Nov 20, 2017
1 parent fed3dcf commit 010b6c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ sudo: false
matrix:
include:
- php: 5.5
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
- php: 5.6
- php: 7
- php: 7.0
env: PHPSTAN=1
- php: 7.1
env: PHPSTAN=1
- php: hhvm
sudo: required
Expand All @@ -16,7 +17,7 @@ matrix:

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist

script:
- if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.6 && vendor/bin/phpstan analyse -c phpstan.neon -l 3 src; fi
Expand Down

0 comments on commit 010b6c8

Please sign in to comment.