diff --git a/.travis.yml b/.travis.yml index a681c73..35308db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,18 @@ language: r cache: packages sudo: false +env: + - CODECOV_TOKEN="40f86a6d-0a11-485b-986d-385f921a73f5" + r_packages: - roxygen2 - devtools - XML - yaml + - covr 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 + - Rscript -e 'library(covr); codecov()'