Skip to content

Commit 0ded207

Browse files
TomasVotrubajaapio
authored andcommitted
travis: run cs just once
1 parent 5ff9ca3 commit 0ded207

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,24 @@ php:
55
- 7.1
66
- 7.2
77

8+
matrix:
9+
include:
10+
- php: 7.1
11+
env: STATIC_ANALYSIS=true
12+
813
cache:
914
directories:
1015
- $HOME/.composer/cache
1116

1217
install:
1318
- composer install --no-interaction
1419
# coding style
15-
- composer create-project symplify/easy-coding-standard temp/ecs
20+
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
1621

1722
script:
1823
- vendor/bin/phpunit --coverage-clover=coverage.clover -v
1924
# coding style
20-
- temp/ecs/bin/ecs check src tests
25+
- if [[ $STATIC_ANALYSIS != "" ]]; then temp/ecs/bin/ecs check src tests; fi
2126

2227
after_script:
2328
- wget https://scrutinizer-ci.com/ocular.phar

0 commit comments

Comments
 (0)