Add Travis CI file

This commit is contained in:
Michael Butler 2018-03-17 23:41:21 -04:00
parent 6ebf49b95e
commit 0d6f3372cc

30
.travis.yml Normal file
View file

@ -0,0 +1,30 @@
language: php
sudo: false
cache:
directories:
- $HOME/.composer/
# Run tests against all these PHP versions
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
before_script:
- composer install --prefer-dist
script:
- vendor/bin/phpunit --coverage-clover=coverage.clover
# Uncomment out to submit code coverage report to scrutinizer
#after_script:
# - wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover
notifications:
email: false