From 67d8d8eca5d90ab08f9d97ecdc19a2931af45577 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Tue, 2 Jan 2018 13:38:48 +0100 Subject: [PATCH] travis: split PHPSTAN and ECS runs --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e3c9cb..d464e60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ php: matrix: include: - php: 7.1 - env: STATIC_ANALYSIS=true + env: ECS=true + - php: 7.1 + env: PHPSTAN=true cache: directories: @@ -15,14 +17,12 @@ cache: install: - composer install --no-interaction - # coding style - - if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi + - if [[ $ECS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi script: - vendor/bin/phpunit --coverage-clover=coverage.xml -v - # coding style - - if [[ $STATIC_ANALYSIS != "" ]]; then temp/ecs/bin/ecs check src tests; fi - - if [[ $STATIC_ANALYSIS != "" ]]; then vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; fi + - if [[ $ECS != "" ]]; then temp/ecs/bin/ecs check src tests; fi + - if [[ $PHPSTAN != "" ]]; then vendor/bin/phpstan analyse src tests --level max --configuration phpstan.neon; fi after_script: - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar;