Skip to content

Commit

Permalink
Add Travis CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Oct 29, 2017
1 parent 9116583 commit 92cbb77
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: php

sudo: false

matrix:
fast_finish: true
include:
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
env: CODE_COVERAGE=1

cache:
directories:
- $HOME/.composer

install:
- if [ "$CODE_COVERAGE" != 1 ]; then phpenv config-rm xdebug.ini || true; fi
- cp composer.json-dist composer.json
- composer install --prefer-dist

script:
- if [ "$CODE_COVERAGE" = 1 ]; then CODE_COVERAGE_ARGS="--coverage-text"; fi; vendor/bin/phpunit -c tests/phpunit.xml $CODE_COVERAGE_ARGS

notifications:
email: false

0 comments on commit 92cbb77

Please sign in to comment.