mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
simplify travis.yml
This commit is contained in:
parent
3e9f3b8342
commit
8a525e12a0
22
.travis.yml
22
.travis.yml
@ -1,19 +1,13 @@
|
||||
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"
|
||||
php:
|
||||
- 7.1
|
||||
|
||||
install:
|
||||
# install composer dependencies
|
||||
- composer install
|
||||
|
||||
script:
|
||||
# run tests
|
||||
- vendor/bin/phpunit $PHPUNIT_FLAGS
|
||||
- vendor/bin/phpunit --coverage-clover coverage.xml
|
||||
# check coding standard (defined in composer.json "scripts" section)
|
||||
# if this fails, run "composer fix-cs" to fix all fixable issues
|
||||
- composer check-cs
|
||||
@ -21,13 +15,9 @@ script:
|
||||
- composer phpstan
|
||||
|
||||
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
|
||||
# upload coverage to Coveralls.io
|
||||
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
|
||||
- php coveralls.phar --verbose
|
||||
|
||||
notifications:
|
||||
email: never
|
||||
|
Loading…
x
Reference in New Issue
Block a user