Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Mar 10, 2020
1 parent 3967cd6 commit 17d6bd8
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
Expand Up @@ -20,3 +20,4 @@ googlesheets.rds
^appveyor\.yml$
^app\.R$
^Dockerfile$
^codecov\.yml$
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

language: R
cache: packages

after_success:
- Rscript -e 'covr::coveralls()'
- Rscript -e 'covr::codecov()'
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ Imports:
Suggests:
echarts4r (>= 0.3.0),
echarts4r.maps,
testthat (>= 2.1.0)
testthat (>= 2.1.0),
covr
RoxygenNote: 7.0.2
URL: https://github/JohnCoene/coronavirus
BugReports: https://github/JohnCoene/coronavirus/issues
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/JohnCoene/coronavirus?branch=master&svg=true)](https://ci.appveyor.com/project/JohnCoene/coronavirus)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
![](https://img.shields.io/badge/license-MIT-blue)
[![Coveralls test coverage](https://coveralls.io/repos/github/JohnCoene/coronavirus/badge.svg)](https://coveralls.io/r/JohnCoene/coronavirus?branch=master)
[![Codecov test coverage](https://codecov.io/gh/JohnCoene/coronavirus/branch/master/graph/badge.svg)](https://codecov.io/gh/JohnCoene/coronavirus?branch=master)
<!-- badges: end -->

Dashboard to track the spread of the coronavirus, based on three data sources, built with [shinyMobile](https://rinterface.github.io/shinyMobile/) and [echarts4r](https://echarts4r.john-coene.com/).
Expand Down
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 17d6bd8

Please sign in to comment.