.travis.yml
sudo: false
language: php
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
include:
- php: 7.2
env: PHPLINT=1 COVERAGE=1
- php: 7.1
- php: 7.0
allow_failures:
- php: nightly
before_script:
- composer self-update
- composer install
script:
- |
if [[ "$PHPLINT" == "1" ]]; then
find -L . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
fi
- |
if [[ -z "$CODECLIMATE_REPO_TOKEN" ]]; then
COVERAGE="0"
fi
- |
if [[ "$COVERAGE" == "1" ]]; then
mkdir -p build/logs
vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml
vendor/bin/test-reporter;
else
vendor/bin/phpunit -c phpunit.xml
fi
notifications:
email: false