respect-validation/.travis.yml
Henrique Moody b4dbd89f45
Allow failures on PHP 7.2
Once it's not fully stable yet.
2017-11-12 13:59:04 +01:00

38 lines
814 B
YAML

sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: 7.0
env: COMPOSER_ARGUMENTS="--prefer-lowest --prefer-stable"
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
allow_failures:
- php: nightly
- php: 7.2
fast_finish: true
before_script:
- composer update --prefer-dist ${COMPOSER_ARGUMENTS}
script:
- vendor/bin/phpunit --configuration phpunit.xml.dist --colors --coverage-clover=coverage.clover
- |
if [[ "${TRAVIS_PHP_VERSION}" == "7.1" ]]; then
vendor/bin/docheader check library tests
fi
after_script:
- |
if [[ "${TRAVIS_PHP_VERSION}" == "7.1" ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi