Skip to content

Commit 5958c14

Browse files
committed
Use code coverage despite the shamefully low current coverage
1 parent 3c23735 commit 5958c14

6 files changed

+9
-2
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
^\.travis\.yml$
44
^README\.Rmd$
55
^README-.*\.png$
6+
^codecov\.yml$

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ r:
88
- oldrel
99
- release
1010
- devel
11+
12+
after_success:
13+
- Rscript -e 'covr::codecov()'

DESCRIPTION

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ Imports:
1616
RoxygenNote: 6.0.1
1717
URL: https://github.com/hadley/strict
1818
BugReports: https://github.com/hadley/strict/issues
19-
Suggests: testthat
19+
Suggests: testthat,
20+
covr

README.Rmd

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ knitr::opts_chunk$set(
1616

1717
[![Travis-CI Build Status](https://travis-ci.org/hadley/strict.svg?branch=master)](https://travis-ci.org/hadley/strict)
1818
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/strict)](https://cran.r-project.org/package=strict)
19+
[![Coverage Status](https://img.shields.io/codecov/c/github/hadley/strict/master.svg)](https://codecov.io/github/hadley/strict?branch=master)
1920

2021
The goal of strict to make R behave a little more strictly, making base functions more likely to throw an error rather than returning potentially ambiguous results.
2122

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
strict
44
======
55

6-
[![Travis-CI Build Status](https://travis-ci.org/hadley/strict.svg?branch=master)](https://travis-ci.org/hadley/strict) [![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/strict)](https://cran.r-project.org/package=strict)
6+
[![Travis-CI Build Status](https://travis-ci.org/hadley/strict.svg?branch=master)](https://travis-ci.org/hadley/strict) [![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/strict)](https://cran.r-project.org/package=strict) [![Coverage Status](https://img.shields.io/codecov/c/github/hadley/strict/master.svg)](https://codecov.io/github/hadley/strict?branch=master)
77

88
The goal of strict to make R behave a little more strictly, making base functions more likely to throw an error rather than returning potentially ambiguous results.
99

codecov.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

0 commit comments

Comments
 (0)