simplify travis.yml

This commit is contained in:
TomasVotruba 2017-08-15 15:19:34 +02:00
parent 3e9f3b8342
commit 8a525e12a0

View File

@ -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