Skip to content

Commit

Permalink
Add tests matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot committed Feb 10, 2016
1 parent 823e50a commit 5a46296
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
42 changes: 38 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,48 @@
language: php

php:
- 5.6
- 5.5
- 5.4
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

install: travis_retry composer install --no-interaction --prefer-source
matrix:
fast_finish: true
include:
- php: 5.3
env: polyfill='true'
- php: 5.3
env: polyfill='false'
- php: 5.4
env: polyfill='true'
- php: 5.4
env: polyfill='false'
- php: 5.5
env: polyfill='true'
- php: 5.5
env: polyfill='false'
- php: 5.6
env: polyfill='true'
- php: 5.6
env: polyfill='false'
- php: 7.0
env: polyfill='true'
- php: 7.0
env: polyfill='false'

install: travis_retry composer install --no-interaction --prefer-source

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- if [[ $polyfill = 'false' ]]; then travis_retry composer remove symfony/polyfill-mbstring; fi

script:
- vendor/bin/phpunit

3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
}
],
"require": {
"php": ">=5.3.0",
"symfony/polyfill-mbstring": "~1.0"
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
Expand Down

0 comments on commit 5a46296

Please sign in to comment.