From 355187b692ee5b174d917f7c5a759b6c790a5777 Mon Sep 17 00:00:00 2001 From: Chuck Burgess Date: Mon, 8 Jan 2018 07:06:44 -0600 Subject: [PATCH] move ECS & phpstan into a stage --- .travis.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index b1fccf7..ef6266b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,28 +2,27 @@ language: php php: [7.1, 7.2, nightly ] sudo: false -matrix: - include: - - php: 7.1 - env: ECS=true - - php: 7.1 - env: PHPSTAN=true - env: global: - VERSION=$(echo $TRAVIS_TAG | cut -c 2-10) install: - composer install --no-interaction --prefer-dist -o -- if [[ $ECS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi jobs: include: - stage: Test script: - vendor/bin/phpunit - - if [[ $ECS != "" ]]; then temp/ecs/bin/ecs check src tests; fi - - if [[ $PHPSTAN != "" ]]; then vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; fi + + - stage: lint + php: 7.1 + script: vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; + + - stage lint + php: 7.1 + script: temp/ecs/bin/ecs check src tests; + before_script: composer create-project symplify/easy-coding-standard temp/ecs; - stage: Coverage php: 7.1