From 68af578ea3d5ce7feae5c677546dc42471ae3f5e Mon Sep 17 00:00:00 2001 From: Raoul Wadhwa Date: Tue, 7 Aug 2018 23:06:21 -0400 Subject: [PATCH] Added code coverage to project. --- .Rbuildignore | 1 + .travis.yml | 4 +++- DESCRIPTION | 3 ++- README.md | 1 + codecov.yml | 6 ++++++ 5 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 codecov.yml diff --git a/.Rbuildignore b/.Rbuildignore index 4e59a1f..ab83393 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -7,3 +7,4 @@ ^data-raw$ JOSS-paper LICENSE +^codecov\.yml$ diff --git a/.travis.yml b/.travis.yml index ffa9aef..a0c9d33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ # From "R Packages" by Hadley Wickham language: r warnings_are_errors: true -sudo: required \ No newline at end of file +sudo: required +after_success: +- Rscript -e 'covr::codecov()' \ No newline at end of file diff --git a/DESCRIPTION b/DESCRIPTION index e9bb73e..cd54b01 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -36,5 +36,6 @@ RoxygenNote: 6.0.1 SystemRequirements: C++11 Suggests: testthat (>= 2.0.0), knitr, - rmarkdown + rmarkdown, + covr VignetteBuilder: knitr diff --git a/README.md b/README.md index e7b96a6..3789b18 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![CRAN Downloads](http://cranlogs.r-pkg.org/badges/grand-total/TDAstats)](https://CRAN.R-project.org/package=TDAstats) [![status](http://joss.theoj.org/papers/0ac4998ce691c718c4518201b86ef87d/status.svg)](http://joss.theoj.org/papers/0ac4998ce691c718c4518201b86ef87d) +[![Coverage Status](https://img.shields.io/codecov/c/github/rrrlw/TDAstats/master.svg)](https://codecov.io/github/rrrlw/TDAstats?branch=master) ## Overview diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..92355a8 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,6 @@ +comment: false +language: R +sudo: false +cache: packages +after_success: +- Rscript -e 'covr::codecov()' \ No newline at end of file