Skip to content

Commit 44da022

Browse files
committed
Use code coverage
1 parent cf60414 commit 44da022

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
^README\.Rmd$
44
^README-.*\.png$
55
^\.travis\.yml$
6+
^codecov\.yml$

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
language: R
44
sudo: false
55
cache: packages
6+
7+
after_success:
8+
- Rscript -e 'covr::codecov()'

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ Encoding: UTF-8
1515
LazyData: true
1616
URL: https://github.com/hadley/blob
1717
BugReports: https://github.com/hadley/blob/issues
18-
Suggests: testthat
18+
Suggests:
19+
testthat,
20+
covr
1921
RoxygenNote: 5.0.1.9000

README.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ output: github_document
44

55
[![Travis-CI Build Status](https://travis-ci.org/hadley/blob.svg?branch=master)](https://travis-ci.org/hadley/blob)
66
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/blob)](https://cran.r-project.org/package=blob)
7+
[![Coverage Status](https://img.shields.io/codecov/c/github/hadley/blob/master.svg)](https://codecov.io/github/hadley/blob?branch=master)
78

89
<!-- README.md is generated from README.Rmd. Please edit that file -->
910

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

0 commit comments

Comments
 (0)