Skip to content

Commit

Permalink
add code coverage to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
andzajan committed Apr 1, 2019
1 parent e05ace2 commit 76b8113
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
^codecov\.yml$
^.*\.Rproj$
^\.Rproj\.user$
^\.git$
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ r: bioc-devel
sudo: false
cache: packages
warnings_are_errors: false
after_success:
- Rscript -e 'covr::codecov()'
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ Imports: impute, pcaMethods, missForest
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
Suggests: testthat
Suggests:
testthat,
covr
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ References

.. |License| image:: https://img.shields.io/badge/licence-GNU_v3-teal.svg?style=flat&maxAge=3600
:target: https://www.gnu.org/licenses/gpl-3.0.html

.. |Coverage| image:: https://codecov.io/gh/computational-metabolomics/pmp/branch/master/graph/badge.svg
:target: https://codecov.io/github/computational-metabolomics/pmp?branch=master
12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
comment: false

coverage:
status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: auto
threshold: 1%

0 comments on commit 76b8113

Please sign in to comment.