mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
36 lines
987 B
YAML
36 lines
987 B
YAML
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)
|
|
# if this fails, run "composer fs" to fix all fixable issues
|
|
- composer cs
|
|
# check with phpstan (defined in composer.json "scripts" section)
|
|
- composer ps
|
|
|
|
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
|
|
|
|
# do not send success notifications, they have no value
|
|
notifications:
|
|
email:
|
|
on_success: never
|