Skip to content

Commit

Permalink
Update travisCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
chschan committed Nov 3, 2020
1 parent 319eac1 commit 9d5173b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: r
r:
- release
dist: bionic
sudo: required
cache: packages
warnings_are_errors: false

Expand All @@ -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');"
Expand Down

0 comments on commit 9d5173b

Please sign in to comment.