From 59fc1acbb80b5c200d433949c069f3c0fcc2f6d7 Mon Sep 17 00:00:00 2001 From: Michel Lang Date: Tue, 24 Jan 2017 14:03:15 +0100 Subject: [PATCH] added codecov --- .Rbuildignore | 1 + .travis.yml | 3 ++- DESCRIPTION | 3 ++- README.md | 1 + codecov.yml | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 codecov.yml diff --git a/.Rbuildignore b/.Rbuildignore index 136dbc0dd..364671240 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -10,3 +10,4 @@ src/*.so ^man-roxygen ^.editorconfig$ ^\.ignore$ +^codecov\.yml$ diff --git a/.travis.yml b/.travis.yml index da7157193..fb702849c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,5 @@ env: global: - secure: "e2QLomaUqNvpHnGNdBXS4VO2/UWokrKl9UgYrqWo+fhpXaJiJuONNPNL44BuWZR2Cy7noTHrevVbTKBkGpqJR42mkjzcjd6qyR1Ctiveir+84/HTtmexouIUn5OFRH5dgyt/gquld31RlHlSYoKho3nZ7D7SnVExov9tp2FGRhU=" -warnings_are_errors: false +after_success: + - Rscript -e 'covr::codecov()' diff --git a/DESCRIPTION b/DESCRIPTION index 5795106d4..a7fe8832f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -51,7 +51,8 @@ Suggests: randomForest, rpart, testthat, - eaf + eaf, + covr LazyData: yes ByteCompile: yes Version: 1.0.0 diff --git a/README.md b/README.md index 79f2d3179..504eda1d9 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/mlrMBO)](https://cran.r-project.org/package=mlrMBO) [![Build Status](https://travis-ci.org/mlr-org/mlrMBO.png?branch=master)](https://travis-ci.org/mlr-org/mlrMBO) [![Build status](https://ci.appveyor.com/api/projects/status/gvr607kqcl78qjq9/branch/master?svg=true)](https://ci.appveyor.com/project/jakob-r/mlrmbo/branch/master) +[![Coverage Status](https://img.shields.io/codecov/c/github/berndbischl/mlrMBO/master.svg)](https://codecov.io/github/berndbischl/mlrMBO?branch=master) Model-based optimization with [mlr](https://github.com/mlr-org/mlr/). diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..69cb76019 --- /dev/null +++ b/codecov.yml @@ -0,0 +1 @@ +comment: false