Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into DS-3136
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwishart committed Jan 21, 2021
2 parents 7444db6 + 32784f2 commit 6443ab4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
language: r
r:
- release
dist: xenial
sudo: required
dist: bionic
cache: packages
warnings_are_errors: false

# install debian libraries to match R-servers
# update pre-installed packages to latest versions
before_install:
- export R_REMOTES_NO_ERRORS_FROM_WARNINGS="true"
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get -qq update
- sudo apt-get install -y libgdal-dev libproj-dev python-protobuf libprotoc-dev libprotobuf-dev libv8-dev librsvg2-dev libmpfr-dev libnlopt-dev
- sudo add-apt-repository -y ppa:cran/libgit2
- sudo apt-get -qq update
- sudo apt-get install libgit2-dev
- export R_REMOTES_NO_ERRORS_FROM_WARNINGS="true"
- 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))); "
- sudo apt-get install -y r-cran-rcppeigen
- 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+="res <- as.data.frame(res); out <- data.frame(file = unlist(res[['file']]), warning = unlist(res[['warning']])); "
- rcode+="write.csv(out, file='test_results.csv'); "
Expand Down

0 comments on commit 6443ab4

Please sign in to comment.