mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
f7a4180541
If after executing php-cs-fixer any file must be changed the build should not pass. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
41 lines
936 B
YAML
41 lines
936 B
YAML
sudo: false
|
|
|
|
language: php
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
- $HOME/.php-cs-fixer
|
|
|
|
matrix:
|
|
include:
|
|
- php: 7.1
|
|
env: COMPOSER_ARGUMENTS="--prefer-lowest --prefer-stable"
|
|
- php: 7.1
|
|
- php: 7.2
|
|
- php: nightly
|
|
allow_failures:
|
|
- php: nightly
|
|
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.2" ]]; then
|
|
vendor/bin/docheader check library tests
|
|
fi
|
|
- |
|
|
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
|
vendor/bin/php-cs-fixer --diff --dry-run --verbose fix
|
|
fi
|
|
|
|
after_script:
|
|
- |
|
|
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
|
wget https://scrutinizer-ci.com/ocular.phar
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
|
fi
|