run coverage before lint

This commit is contained in:
Chuck Burgess
2018-01-09 12:58:19 -06:00
parent e6fb1cbc9b
commit 4f81271c85
+8 -8
View File
@@ -21,14 +21,6 @@ jobs:
script: script:
- vendor/bin/phpunit --no-coverage - vendor/bin/phpunit --no-coverage
- stage: lint
php: 7.1
before_script:
- composer create-project symplify/easy-coding-standard temp/ecs
script:
- temp/ecs/bin/ecs check src tests
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
- stage: coverage - stage: coverage
php: 7.1 php: 7.1
script: script:
@@ -37,6 +29,14 @@ jobs:
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml - wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose
- stage: lint
php: 7.1
before_script:
- composer create-project symplify/easy-coding-standard temp/ecs
script:
- temp/ecs/bin/ecs check src tests
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
cache: cache:
directories: directories:
- $HOME/.composer/cache/files - $HOME/.composer/cache/files