rector/.travis.yml

34 lines
928 B
YAML
Raw Normal View History

2017-07-15 19:12:04 +02:00
language: php
matrix:
include:
# run extra build with PHP 7.1
- php: 7.1
# add variables to enable coverage, coding standard check and static analysis
env: PHPUNIT_FLAGS="--coverage-clover coverage.xml"
install:
# install composer dependencies
- composer install
script:
# run tests
- vendor/bin/phpunit $PHPUNIT_FLAGS
# check coding standard (defined in composer.json "scripts" section)
2017-07-15 19:20:20 +02:00
# if this fails, run "composer fs" to fix all fixable issues
2017-08-06 19:30:19 +02:00
- composer check-cs
2017-07-15 19:12:04 +02:00
# check with phpstan (defined in composer.json "scripts" section)
2017-08-06 19:30:19 +02:00
# - composer phpstan
2017-07-15 19:12:04 +02:00
after_script:
# upload coverage.xml file to Coveralls to analyze it
# minimal required coverage is set to 80+ %
- |
if [[ $PHPUNIT_FLAGS != "" ]]; then
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
php coveralls.phar --verbose
fi
notifications:
2017-08-07 15:53:52 +02:00
email: never