From 9d5173b96130f178c77772d6c223c5a10741f9ce Mon Sep 17 00:00:00 2001 From: chschan Date: Tue, 3 Nov 2020 15:53:19 +1100 Subject: [PATCH] Update travisCI config --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f4147d2..0a0cf96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: r r: - release dist: bionic -sudo: required cache: packages warnings_are_errors: false @@ -16,10 +15,11 @@ before_install: - export RETICULATE_PYTHON="/opt/python/3.7/bin/python3.7" - sudo pip install pip --upgrade - sudo /opt/python/3.7/bin/python3.7 -m pip install --ignore-installed numpy pandas tensorflow keras h5py six - - rcode="tfile <- tempfile(); capture.output(res<-devtools::test(), file = tfile); out <- readLines(tfile); cat(out, sep = '\n'); " - - rcode+="tmp <- unlist(strsplit(split='[[:space:]]+', tail(out, 1))); " + - rcode="options('testthat.progress.max_fails' = Inf); " + - rcode+="tfile <- tempfile(); capture.output(res<-devtools::test(), file = tfile); out <- readLines(tfile); cat(out, sep = '\n'); " + - rcode+="line.fail <- max(grep('FAIL', out)); " + - rcode+="tmp <- unlist(strsplit(split='[[:space:]]+', out[line.fail])); " - rcode+="pos.fail <- grep('FAIL', tmp); n.fail <- as.numeric(tmp[pos.fail+1]); " - - rcode+="print(tmp); " - rcode+="res <- as.data.frame(res); out <- data.frame(file = unlist(res[['file']]), warning = unlist(res[['warning']])); " - rcode+="write.csv(out, file='test_results.csv'); " - rcode+="quit(status = !identical(n.fail, 0), save='no');"