From 5d393d2928ac66bcbb1b57b9b35c546d9d0458d3 Mon Sep 17 00:00:00 2001 From: Mateusz Staniak Date: Sat, 5 May 2018 01:05:19 +0200 Subject: [PATCH] codecov --- .Rbuildignore | 3 ++- .travis.yml | 2 ++ DESCRIPTION | 3 ++- README.md | 2 ++ codecov.yml | 3 +++ 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 codecov.yml diff --git a/.Rbuildignore b/.Rbuildignore index 54ba23e..edeb33a 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -3,4 +3,5 @@ ^.travis.yml ^docs$ ^cheatsheet$ -^cheatsheets$ \ No newline at end of file +^cheatsheets$ +^codecov\.yml$ diff --git a/.travis.yml b/.travis.yml index dd232f9..32333b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,3 +15,5 @@ r_packages: - e1071 - breakDown +after_success: + - Rscript -e 'covr::codecov()' diff --git a/DESCRIPTION b/DESCRIPTION index b5527f2..9c6ba25 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -26,7 +26,8 @@ Suggests: knitr, rmarkdown, testthat, glmnet, - e1071 + e1071, + covr VignetteBuilder: knitr Imports: mlr, dplyr, diff --git a/README.md b/README.md index 6646113..a237fb0 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ [![Total Downloads](http://cranlogs.r-pkg.org/badges/grand-total/live?color=orange)](http://cranlogs.r-pkg.org/badges/grand-total/live) [![Pending Pull-Requests](http://githubbadges.herokuapp.com/MI2DataLab/live/pulls.svg)](https://github.com/MI2DataLab/live/pulls) [![Github Issues](http://githubbadges.herokuapp.com/MI2DataLab/live/issues.svg)](https://github.com/MI2DataLab/live/issues) +[![Coverage Status](https://img.shields.io/codecov/c/github/MI2DataLab/live/master.svg)](https://codecov.io/github/MI2DataLab/live?branch=master) + ## Installation diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..e7c3ead --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +comment: false +codecov: + token: bf629347-0b7e-423e-8b4c-8e7261a1b29c \ No newline at end of file