travis: run cs just once

This commit is contained in:
TomasVotruba
2017-11-12 21:23:54 +01:00
committed by Jaap van Otterdijk
parent 5ff9ca38c5
commit 0ded2070d1
+7 -2
View File
@@ -5,6 +5,11 @@ php:
- 7.1 - 7.1
- 7.2 - 7.2
matrix:
include:
- php: 7.1
env: STATIC_ANALYSIS=true
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache
@@ -12,12 +17,12 @@ cache:
install: install:
- composer install --no-interaction - composer install --no-interaction
# coding style # 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: script:
- vendor/bin/phpunit --coverage-clover=coverage.clover -v - vendor/bin/phpunit --coverage-clover=coverage.clover -v
# coding style # coding style
- temp/ecs/bin/ecs check src tests - if [[ $STATIC_ANALYSIS != "" ]]; then temp/ecs/bin/ecs check src tests; fi
after_script: after_script:
- wget https://scrutinizer-ci.com/ocular.phar - wget https://scrutinizer-ci.com/ocular.phar