Skip to content

Commit eaa7e70

Browse files
committed
Merge pull request #7 from Art4/travis-relief
Report coverage only once
2 parents d41eec8 + a50394a commit eaa7e70

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.travis.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
language: php
22

3-
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7
3+
matrix:
4+
include:
5+
- php: 5.4
6+
- php: 5.5
7+
- php: 5.6
8+
env: COLLECT_COVERAGE=true
9+
- php: 7
810

911
sudo: false
1012

@@ -16,7 +18,7 @@ install:
1618
- composer require satooshi/php-coveralls --dev
1719

1820
script:
19-
- php vendor/phpunit/phpunit/phpunit --coverage-clover build/logs/clover.xml
21+
- if [[ "$COLLECT_COVERAGE" == "true" ]]; then php vendor/phpunit/phpunit/phpunit --coverage-clover build/logs/clover.xml; else php vendor/phpunit/phpunit/phpunit; fi
2022

2123
after_script:
22-
- php vendor/bin/coveralls
24+
- if [[ "$COLLECT_COVERAGE" == "true" ]]; then php vendor/bin/coveralls; fi

0 commit comments

Comments
 (0)