Skip to content

Commit 68b291b

Browse files
Corrected coverage uploader invocation
1 parent 4ddde1d commit 68b291b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ script:
5252

5353
after_success:
5454
# If coverage file is generated then upload it to Codacy (requires CODACY_PROJECT_TOKEN= env var set).
55-
- [[ -f /tmp/coverage.xml ]] && then vendor/bin/codacycoverage clover /tmp/coverage.xml
55+
- if [ -f /tmp/coverage.xml ]; then vendor/bin/codacycoverage clover /tmp/coverage.xml ; fi
5656
# Scrunitizer-CI
57-
- [[ -f /tmp/coverage.xml ]] && { wget --output-document=/tmp/ocular.phar https://scrutinizer-ci.com/ocular.phar && php /tmp/ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.xml }
57+
- if [ -f /tmp/coverage.xml ]; then wget --output-document=/tmp/ocular.phar https://scrutinizer-ci.com/ocular.phar && php /tmp/ocular.phar code-coverage:upload --format=php-clover /tmp/coverage.xml ; fi

0 commit comments

Comments
 (0)