.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
allow_failures:
- php: 7.0
before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
script:
- phpunit --coverage-text --coverage-clover=coverage.clover
- vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text
after_script:
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
- vendor/bin/coveralls -v
addons:
code_climate:
repo_token: a6822f9c6a59e02665b7b69aec43d9db13a9ca476d6460aa4bd8118d16bd6804