Skip to content

Commit ea6a685

Browse files
committed
Merge pull request #215 from FriendsOfSymfony/produce-coverage-once
Produce code coverage only once
2 parents 2f46f67 + 65a8ab7 commit ea6a685

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ php:
44
- 5.3
55
- 5.4
66
- 5.5
7-
- 5.6
7+
- 7.0
88
- hhvm
99

1010
branches:
@@ -32,6 +32,10 @@ matrix:
3232
env:
3333
- SYMFONY_VERSION='2.7.*@dev'
3434
- FRAMEWORK_EXTRA_VERSION='~3.0'
35+
- php: 5.6
36+
env:
37+
- PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
38+
- COVERAGE=true
3539

3640
# only needed for the hackaround for https://github.com/symfony/symfony/issues/12868
3741
before_install:
@@ -47,13 +51,13 @@ before_script:
4751
- sudo pip install -r Resources/doc/requirements.txt
4852

4953
script:
50-
- phpunit --coverage-clover=coverage.clover
54+
- phpunit ${PHPUNIT_FLAGS}
5155
- make -C Resources/doc SPHINXOPTS='-nW' html
5256
- make -C Resources/doc spelling
5357

5458
after_script:
55-
- wget https://scrutinizer-ci.com/ocular.phar
56-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
59+
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
60+
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
5761

5862
after_failure:
5963
- cat /tmp/fos-http-cache-bundle/logs/test.log

0 commit comments

Comments
 (0)