From afb0aa509aee5cc400c3f6372fe068cc928fb162 Mon Sep 17 00:00:00 2001 From: Matt Dancho Date: Mon, 19 Mar 2018 19:56:01 -0400 Subject: [PATCH] add readme badges --- .Rbuildignore | 2 ++ .travis.yml | 8 ++++++++ DESCRIPTION | 3 ++- README.Rmd | 4 ++++ README.md | 5 +++++ codecov.yml | 12 ++++++++++++ 6 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .travis.yml create mode 100644 codecov.yml diff --git a/.Rbuildignore b/.Rbuildignore index aa06f51..4bf8968 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -5,3 +5,5 @@ ^_pkgdown\.yml$ ^docs$ ^data-raw$ +^\.travis\.yml$ +^codecov\.yml$ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..aa918dd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r + +language: R +sudo: false +cache: packages + +after_success: + - Rscript -e 'covr::codecov()' diff --git a/DESCRIPTION b/DESCRIPTION index 4bf582a..be9a0bc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -35,4 +35,5 @@ Imports: RoxygenNote: 6.0.1 Roxygen: list(markdown = TRUE) Suggests: - testthat + testthat, + covr diff --git a/README.Rmd b/README.Rmd index ef29083..5627d01 100644 --- a/README.Rmd +++ b/README.Rmd @@ -22,6 +22,10 @@ library(tidyverse) # anomalize +[![Travis build status](https://travis-ci.org/business-science/anomalize.svg?branch=master)](https://travis-ci.org/business-science/anomalize) +[![Coverage status](https://codecov.io/gh/business-science/anomalize/branch/master/graph/badge.svg)](https://codecov.io/github/business-science/anomalize?branch=master) + + > Tidy anomaly detection `anomalize` enables a tidy workflow for detecting anomalies in data. The main functions are `time_decompose()`, `anomalize()`, and `time_recompose()`. When combined, it's quite simple to decompose time series, detect anomalies, and create bands separating the "normal" data from the anomalous data. diff --git a/README.md b/README.md index 1c25f60..05fdf20 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,11 @@ # anomalize +[![Travis build +status](https://travis-ci.org/business-science/anomalize.svg?branch=master)](https://travis-ci.org/business-science/anomalize) +[![Coverage +status](https://codecov.io/gh/business-science/anomalize/branch/master/graph/badge.svg)](https://codecov.io/github/business-science/anomalize?branch=master) + > Tidy anomaly detection `anomalize` enables a tidy workflow for detecting anomalies in data. The 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%