File tree Expand file tree Collapse file tree 7 files changed +29
-1
lines changed Expand file tree Collapse file tree 7 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 6
6
^_pkgdown\.yml$
7
7
^docs$
8
8
^pkgdown$
9
+ ^codecov\.yml$
Original file line number Diff line number Diff line change @@ -12,9 +12,13 @@ notifications:
12
12
13
13
r_packages :
14
14
- magrittr
15
+ - covr
15
16
16
17
before_cache : Rscript -e 'remotes::install_cran("pkgdown")'
17
18
deploy :
18
19
provider : script
19
20
script : Rscript -e 'pkgdown::deploy_site_github()'
20
21
skip_cleanup : true
22
+
23
+ after_success :
24
+ - Rscript -e 'covr::codecov()'
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ Imports:
21
21
Suggests:
22
22
knitr,
23
23
rmarkdown,
24
- testthat (>= 2.1.0)
24
+ testthat (>= 2.1.0),
25
+ covr
25
26
VignetteBuilder: knitr
26
27
URL: https://github.com/ahasverus/pkgmin
27
28
BugReports: https://github.com/ahasverus/pkgmin/issues
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ knitr::opts_chunk$set(
18
18
<!-- badges: start -->
19
19
[ ![ Travis build status] ( https://travis-ci.org/ahasverus/pkgmin.svg?branch=master )] ( https://travis-ci.org/ahasverus/pkgmin )
20
20
[ ![ AppVeyor build status] ( https://ci.appveyor.com/api/projects/status/github/ahasverus/pkgmin?branch=master&svg=true )] ( https://ci.appveyor.com/project/ahasverus/pkgmin )
21
+ [ ![ Codecov test coverage] ( https://codecov.io/gh/ahasverus/pkgmin/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ahasverus/pkgmin?branch=master )
21
22
<!-- badges: end -->
22
23
23
24
The goal of pkgmin is to show the structure of an R package.
Original file line number Diff line number Diff line change 9
9
status] ( https://travis-ci.org/ahasverus/pkgmin.svg?branch=master )] ( https://travis-ci.org/ahasverus/pkgmin )
10
10
[ ![ AppVeyor build
11
11
status] ( https://ci.appveyor.com/api/projects/status/github/ahasverus/pkgmin?branch=master&svg=true )] ( https://ci.appveyor.com/project/ahasverus/pkgmin )
12
+ [ ![ Codecov test
13
+ coverage] ( https://codecov.io/gh/ahasverus/pkgmin/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ahasverus/pkgmin?branch=master )
12
14
<!-- badges: end -->
13
15
14
16
The goal of pkgmin is to show the structure of an R package.
Original file line number Diff line number Diff line change
1
+ comment : false
2
+
3
+ coverage :
4
+ status :
5
+ project :
6
+ default :
7
+ target : auto
8
+ threshold : 1%
9
+ patch :
10
+ default :
11
+ target : auto
12
+ threshold : 1%
Original file line number Diff line number Diff line change @@ -143,3 +143,10 @@ system("git push")
143
143
system(" git add -A" )
144
144
system(" git commit -m 'Edit moyenne tests & Improve function checks'" )
145
145
system(" git push" )
146
+
147
+ usethis :: use_coverage(" codecov" )
148
+ # # ● Wait a few minutes (after adding repository on https://codecov.io)
149
+ rmarkdown :: render(" README.Rmd" )
150
+ system(" git add -A" )
151
+ system(" git commit -m 'Setup codecov'" )
152
+ system(" git push" )
You can’t perform that action at this time.
0 commit comments