Permalink
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 1020 Bytes
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
sudo: false
cache: packages
addons:
apt:
packages:
- openjdk-8-jdk
## Because we have several packages in the git repo,
## we need to manually install and test:
## https://docs.travis-ci.com/user/languages/r/#customizing-the-travis-build-steps
install:
- R -e 'install.packages("devtools")'
- R -e 'devtools::install_deps(pkg = "rcdklibs", dep = T)'
- R -e 'devtools::install_deps(pkg = "rcdk", dep = T)'
## Inspired by
## http://jtleek.com/protocols/travis_bioc_devel/#Configuring_R_CMD_check
## https://raw.githubusercontent.com/craigcitro/r-travis/master/scripts/travis-tool.sh
## Make sure to INSTALL after checking, so that rcdk has its latest
## dependencies from this github available, overwriting above
script:
- R CMD build rcdklibs
- R CMD check $(ls -1t *.tar.gz | head -n 1)
- R CMD INSTALL $(ls -1t *.tar.gz | head -n 1)
- R CMD build rcdk
- R CMD check $(ls -1t *.tar.gz | head -n 1)