Skip to content

Commit

Permalink
Update Codecov instructions
Browse files Browse the repository at this point in the history
The current Codecov bash script automatically searches in the DerivedData directory for code coverage files (both gcov and profdata files). In order to prevent the codecov script to automatically search for coverage data and generate reports, we disable report generation (-X coveragepy -X gcov -X xcode) and tell it to upload the report generated by slather (-f path/to/xml_report/cobertura.xml).
  • Loading branch information
0xced committed Oct 16, 2016
1 parent ef8ba65 commit 2cb8e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ before_install: rvm use $RVM_RUBY_VERSION
install: bundle install --without=documentation --path ../travis_bundle_dir
after_success:
- slather
- bash <(curl -s https://codecov.io/bash) -f path/to/xml_report/cobertura.xml
- bash <(curl -s https://codecov.io/bash) -f path/to/xml_report/cobertura.xml -X coveragepy -X gcov -X xcode
```

```yml
Expand All @@ -100,7 +100,7 @@ after_success:
test:
post:
- bundle exec slather
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash) -f path/to/xml_report/cobertura.xml -X coveragepy -X gcov -X xcode
```

> Private repo? Add `-t :uuid-repo-token` to the codecov uploader. Read more about uploading report to Codecov [here](https://github.com/codecov/codecov-bash)
Expand Down

0 comments on commit 2cb8e59

Please sign in to comment.