From 7018709365c318173255e32320e8d16251519dd7 Mon Sep 17 00:00:00 2001 From: David Perez-Suarez Date: Wed, 21 Sep 2016 15:57:59 +0100 Subject: [PATCH 1/3] Now Travis also fails on errors Travis was failing only on `failed` tests, now it also includes `errors` --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a681c73..dfa25f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ r_packages: - yaml script: - - Rscript -e 'library(devtools); checkOutput <- data.frame(test()); if (sum(checkOutput["failed"]) > 0){q(status = 1, save = "no")}' + - Rscript -e 'library(devtools); checkOutput <- data.frame(test()); if (sum(checkOutput["failed"]) + sum(checkOutput[["error"]]) > 0){q(status = 1, save = "no")}' after_success: - bash <(curl -s https://codecov.io/bash) -t 40f86a6d-0a11-485b-986d-385f921a73f5 From c61a4d4f8d6e7453ffe4e2f2b50f5446c5565085 Mon Sep 17 00:00:00 2001 From: dpshelio Date: Wed, 21 Sep 2016 17:55:05 +0100 Subject: [PATCH 2/3] Added codecov uploader (#91) --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a681c73..af17198 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,10 @@ r_packages: - devtools - XML - yaml + - covr script: - Rscript -e 'library(devtools); checkOutput <- data.frame(test()); if (sum(checkOutput["failed"]) > 0){q(status = 1, save = "no")}' after_success: - - bash <(curl -s https://codecov.io/bash) -t 40f86a6d-0a11-485b-986d-385f921a73f5 + - Rscript -e 'library(covr); codecov()' From e41e7358f602d16600246743f4bcb17e59db43b3 Mon Sep 17 00:00:00 2001 From: David Perez-Suarez Date: Wed, 21 Sep 2016 18:00:50 +0100 Subject: [PATCH 3/3] Add codecov token --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 99054b0..35308db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,9 @@ language: r cache: packages sudo: false +env: + - CODECOV_TOKEN="40f86a6d-0a11-485b-986d-385f921a73f5" + r_packages: - roxygen2 - devtools