mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 04:19:44 +01:00
Revert "travis: stages"
This reverts commit 5f6b660e0baee3f1d9cc644e9f4b2b97e8129e03.
This commit is contained in:
parent
479eee023f
commit
eed598e26c
33
.travis.yml
33
.travis.yml
@ -1,34 +1,23 @@
|
||||
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
|
||||
- composer install
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit -v
|
||||
- vendor/bin/phpunit --coverage-clover coverage.xml
|
||||
# disable xdebug
|
||||
- phpenv config-rm xdebug.ini || return 0
|
||||
# check coding standard (defined in composer.json "scripts" section)
|
||||
# if this fails, run "composer fix-cs" to fix all fixable issues
|
||||
- composer check-cs
|
||||
|
||||
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
|
||||
after_script:
|
||||
# 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