Skip to content

Commit

Permalink
Only upload coverage when it has been collected
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Feb 10, 2020
1 parent 20ee9a4 commit 9d1d66a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ env:
- SABRE_MYSQLDSN="mysql:host=127.0.0.1;dbname=sabredav_test"
- RUN_PHPSTAN="FALSE"
matrix:
- PREFER_LOWEST="" TEST_DEPS="" WITH_COVERAGE="--coverage-clover=coverage.xml"
- PREFER_LOWEST="--prefer-lowest" TEST_DEPS="tests/Sabre/" $WITH_COVERAGE=""
- PREFER_LOWEST="" TEST_DEPS="" REPORT_COVERAGE="TRUE" WITH_COVERAGE="--coverage-clover=coverage.xml"
- PREFER_LOWEST="--prefer-lowest" TEST_DEPS="tests/Sabre/" REPORT_COVERAGE="FALSE" WITH_COVERAGE=""

matrix:
include:
- name: 'PHPStan'
php: 7.4
env: RUN_PHPSTAN="TRUE"
env:
- RUN_PHPSTAN="TRUE"
- REPORT_COVERAGE="FALSE"
- name: 'Test with streaming propfind'
php: 7.2
env: RUN_TEST_WITH_STREAMING_PROPFIND="TRUE"
env:
- RUN_TEST_WITH_STREAMING_PROPFIND="TRUE"
- REPORT_COVERAGE="FALSE"
fast_finish: true

services:
Expand All @@ -51,7 +55,7 @@ script:
- if [ $RUN_PHPSTAN == "TRUE" ]; then composer phpstan; fi

after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ $REPORT_COVERAGE == "TRUE" ]; then bash <(curl -s https://codecov.io/bash); fi

cache:
directories:
Expand Down

0 comments on commit 9d1d66a

Please sign in to comment.