diff --git a/.Rbuildignore b/.Rbuildignore index cc23f12..d5eb8cf 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -4,3 +4,4 @@ ^README\.Rmd$ ^\.httr-oauth$ ^\.travis\.yml$ +^codecov\.yml$ diff --git a/.travis.yml b/.travis.yml index eba8c65..9c0fb11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,5 @@ language: R cache: packages +after_success: + - Rscript -e 'covr::codecov()' diff --git a/DESCRIPTION b/DESCRIPTION index 05125df..3536e31 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -20,4 +20,5 @@ Collate: 'zzz.R' Roxygen: list(markdown = TRUE) Suggests: - testthat (>= 2.1.0) + testthat (>= 2.1.0), + covr diff --git a/README.Rmd b/README.Rmd index 4b37501..1ad1237 100644 --- a/README.Rmd +++ b/README.Rmd @@ -16,6 +16,9 @@ knitr::opts_chunk$set( [![Travis build status](https://travis-ci.org/RLesur/apinsee.svg?branch=master)](https://travis-ci.org/RLesur/apinsee) +[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) +[![CRAN status](https://www.r-pkg.org/badges/version/apinsee)](https://cran.r-project.org/package=apinsee) +[![Codecov test coverage](https://codecov.io/gh/RLesur/apinsee/branch/master/graph/badge.svg)](https://codecov.io/gh/RLesur/apinsee?branch=master) **apinsee** est un package pour le langage R destiné à faciliter l'authentification aux API de l'Insee accessibles à l'adresse . diff --git a/README.md b/README.md index 9761422..27094f9 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ [![Travis build status](https://travis-ci.org/RLesur/apinsee.svg?branch=master)](https://travis-ci.org/RLesur/apinsee) +[![Lifecycle: +experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) +[![CRAN +status](https://www.r-pkg.org/badges/version/apinsee)](https://cran.r-project.org/package=apinsee) +[![Codecov test +coverage](https://codecov.io/gh/RLesur/apinsee/branch/master/graph/badge.svg)](https://codecov.io/gh/RLesur/apinsee?branch=master) **apinsee** est un package pour le langage R destiné à faciliter diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..8f36b6c --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +comment: false + +coverage: + status: + project: + default: + target: auto + threshold: 1% + patch: + default: + target: auto + threshold: 1%