Skip to content

Commit 8604a72

Browse files
authored
Merge pull request #99 from RcppCore/feature/coverage
Add coverage support
2 parents 6cf9f4f + c155b19 commit 8604a72

File tree

6 files changed

+32
-8
lines changed

6 files changed

+32
-8
lines changed

.codecov.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
coverage:
2+
precision: 1
3+
4+
comment: false
5+
6+
ignore:
7+
- "inst/include/Eigen/"
8+
- "inst/include/unsupported/Eigen/"
9+
10+
codecov:
11+
token: 0b726434-b483-4a82-9cfe-e8312f3b3e9b

.covrignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
inst/include/Eigen/*
2+
inst/include/unsupported/Eigen/*

.github/workflows/ci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
- name: Test
3636
run: ./run.sh run_tests
3737

38-
#- name: Coverage
39-
# if: ${{ matrix.os == 'ubuntu-latest' }}
40-
# run: ./run.sh coverage
38+
- name: Coverage
39+
if: ${{ matrix.os == 'ubuntu-latest' }}
40+
run: ./run.sh coverage

ChangeLog

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2021-06-06 Dirk Eddelbuettel <[email protected]>
2+
3+
* README.md: Added coverage badge
4+
5+
* .github/workflows/ci.yaml (jobs): Turn on coverage
6+
* .covrignore: Added
7+
* .codecov.yml (ignore): Idem
8+
9+
* R/RcppEigen.package.skeleton.R: Set nocov
10+
111
2021-05-09 Dirk Eddelbuettel <[email protected]>
212

313
* DESCRIPTION (URL): Add GitHub repo to URL field

R/RcppEigen.package.skeleton.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## RcppEigen.package.skeleton.R: makes a skeleton for a package that wants to use RcppEigen
22
##
3-
## Copyright (C) 2011 - 2019 Douglas Bates, Dirk Eddelbuettel and Romain Francois
3+
## Copyright (C) 2011 - 2021 Douglas Bates, Dirk Eddelbuettel and Romain Francois
44
##
55
## This file is part of RcppEigen.
66
##
@@ -23,7 +23,7 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
2323
code_files = character(),
2424
example_code = TRUE) {
2525

26-
env <- parent.frame(1)
26+
env <- parent.frame(1) # #nocov start
2727

2828
if (!length(list)) {
2929
fake <- TRUE
@@ -126,5 +126,5 @@ RcppEigen.package.skeleton <- function(name= "anRpackage", list = character(),
126126
unlink(file.path(root, "man", "Rcpp.fake.fun.Rd"))
127127
}
128128

129-
invisible(NULL)
129+
invisible(NULL) # #nocov end
130130
}

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
## RcppEigen: Rcpp Integration for the Eigen Templated Linear Algebra Library
1+
## RcppEigen: R and Eigen via Rcpp
22

33
[![Build Status](https://travis-ci.org/RcppCore/RcppEigen.svg)](https://travis-ci.org/RcppCore/RcppEigen)
44
[![CI](https://github.com/RcppCore/RcppEigen/workflows/ci/badge.svg)](https://github.com/RcppCore/RcppEigen/actions?query=workflow%3Aci)
55
[![License](https://img.shields.io/badge/license-GPL%20%28%3E=%202%29-brightgreen.svg?style=flat)](https://www.gnu.org/licenses/gpl-2.0.html)
66
[![License](https://img.shields.io/badge/license-MPL2-brightgreen.svg?style=flat)](https://www.mozilla.org/MPL/2.0/)
77
[![CRAN](https://www.r-pkg.org/badges/version/RcppEigen)](https://cran.r-project.org/package=RcppEigen)
88
[![Dependencies](https://tinyverse.netlify.com/badge/RcppEigen)](https://cran.r-project.org/package=RcppEigen)
9+
[![Coverage Status](https://codecov.io/gh/RcppCore/RcppEigen/graph/badge.svg)](https://codecov.io/github/RcppCore/RcppEigen?branch=master)
910
[![Debian package](https://img.shields.io/debian/v/r-cran-rcppeigen/sid?color=brightgreen)](https://packages.debian.org/sid/r-cran-rcppeigen)
10-
[![Last Commit](https://img.shields.io/github/last-commit/RcppCore/RcppEigen)](https://github.com/RcppCore/RcppEigen)
11+
[![Last Commit](https://img.shields.io/github/last-commit/RcppCore/RcppEigen)](https://github.com/RcppCore/RcppEigen)
1112
[![Downloads](https://cranlogs.r-pkg.org/badges/RcppEigen?color=brightgreen)](https://www.r-pkg.org:443/pkg/RcppEigen)
1213
[![CRAN use](https://jangorecki.gitlab.io/rdeps/RcppEigen/CRAN_usage.svg?sanitize=true)](https://cran.r-project.org/package=RcppEigen)
1314
[![BioConductor use](https://jangorecki.gitlab.io/rdeps/RcppEigen/BioC_usage.svg?sanitize=true)](https://cran.r-project.org/package=RcppEigen)

0 commit comments

Comments
 (0)