From 2cb8e59d0b37cbd31436fcc129dc1f8e428fddbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Luthi?= Date: Sun, 16 Oct 2016 03:46:22 +0200 Subject: [PATCH] Update Codecov instructions 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). --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc29b2fe..af977d96 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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)