mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-19 15:45:43 +01:00
35 lines
838 B
YAML
35 lines
838 B
YAML
language: php
|
|
|
|
php:
|
|
- 7.2
|
|
- 7.1
|
|
|
|
before_install:
|
|
# hide xdebug to speed up
|
|
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
|
|
|
|
install:
|
|
- composer install --prefer-dist
|
|
|
|
script:
|
|
- vendor/bin/phpunit -v
|
|
|
|
jobs:
|
|
include:
|
|
- stage: coding standards and code coverage
|
|
php: 7.1
|
|
script:
|
|
- composer check-cs
|
|
-
|
|
php: 7.1
|
|
script:
|
|
# get xdebug back for coverage
|
|
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
|
|
- vendor/bin/phpunit --coverage-clover coverage.xml
|
|
after_script:
|
|
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
|
|
- php coveralls.phar --verbose --config tests/.coveralls.yml
|
|
|
|
notifications:
|
|
email: never
|