language: php
php:
- 7.0
- 7.1
# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
## Cache composer
cache:
directories:
- $HOME/.composer/cache
branches:
only:
- master
matrix:
include:
- php: 7.0
before_script:
- travis_retry composer update --no-interaction --prefer-dist
script:
- php vendor/bin/phpcs --standard=psr2 src/ tests/
- php vendor/bin/phpunit --testdox
after_script:
- php vendor/bin/codacycoverage clover build/logs/clover.xml
|