Skip to content

Commit 019e314

Browse files
committed
Exclude tests from CS build
1 parent 6f4abae commit 019e314

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: php
33
env:
44
global:
55
- PHPCS=0
6-
6+
- RUN_TESTS=1
77

88
php:
99
- 5.4
@@ -21,14 +21,14 @@ matrix:
2121
- php: 5.4
2222
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
2323
- php: 5.6
24-
env: PHPCS=1
24+
env: PHPCS=1 RUN_TESTS=0
2525

2626
before_script:
2727
- travis_retry composer self-update
2828
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
2929

3030
script:
31-
- phpunit --coverage-text --coverage-clover=coverage.clover
31+
- sh -c "if [ '$RUN_TESTS' = '1' ]; then phpunit --coverage-text --coverage-clover=coverage.clover; fi"
3232
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p -n --extensions=php --standard=psr2 ./src ./tests; fi"
3333

3434
after_script:

0 commit comments

Comments
 (0)