From 0ded2070d16b07e4ee9ddf83d7d4cc7020e58843 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sat, 11 Nov 2017 10:47:54 +0100 Subject: [PATCH] travis: run cs just once --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9181842..f5c5e18 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,11 @@ php: - 7.1 - 7.2 +matrix: + include: + - php: 7.1 + env: STATIC_ANALYSIS=true + cache: directories: - $HOME/.composer/cache @@ -12,12 +17,12 @@ cache: install: - composer install --no-interaction # coding style - - composer create-project symplify/easy-coding-standard temp/ecs + - if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi script: - vendor/bin/phpunit --coverage-clover=coverage.clover -v # coding style - - temp/ecs/bin/ecs check src tests + - if [[ $STATIC_ANALYSIS != "" ]]; then temp/ecs/bin/ecs check src tests; fi after_script: - wget https://scrutinizer-ci.com/ocular.phar