rector/.travis.yml

41 lines
833 B
YAML
Raw Normal View History

2017-07-15 19:12:04 +02:00
language: php
matrix:
include:
- php: 7.1
env: PHPUNIT_FLAGS="--coverage-clover coverage.xml"
2017-11-13 03:32:06 +01:00
- php: 7.2
env: STATIC_ANALYSIS=true
2017-07-15 19:12:04 +02:00
install:
- composer install
2017-07-15 19:12:04 +02:00
before_script:
# disable xdebug if not coverage
2017-11-06 13:26:57 +01:00
- if [[ $PHPUNIT_FLAGS = "" ]]; then phpenv config-rm xdebug.ini; fi
2017-07-15 19:12:04 +02:00
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
# disable xdebug
- phpenv config-rm xdebug.ini || return 0
- |
if [[ $STATIC_ANALYSIS != "" ]]; then
composer check-cs
2017-11-06 13:41:02 +01:00
composer phpstan
fi
2017-10-29 23:26:15 +01:00
after_script:
# upload coverage to Coveralls.io
- |
if [[ $PHPUNIT_FLAGS != "" ]]; then
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
php coveralls.phar --verbose
fi
2017-10-29 23:26:15 +01:00
cache:
directories:
- $HOME/.composer/cache
2017-07-15 19:12:04 +02:00
notifications:
2017-08-07 15:53:52 +02:00
email: never