From 4f81271c85115e9b0d0ebbc121844e514a7104d5 Mon Sep 17 00:00:00 2001 From: Chuck Burgess Date: Tue, 9 Jan 2018 12:58:19 -0600 Subject: [PATCH] run coverage before lint --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1bfa78d..269ffd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,14 +21,6 @@ jobs: script: - 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 php: 7.1 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://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: directories: - $HOME/.composer/cache/files