Permalink
Please sign in to comment.
Browse files
Add travis (CDK-R#78)
* Start adding travis * Setup for R pkgs in subdirs, add java dep * Another attempt to install JDK * Attempt to install rJava * Attempt to install devtools prior to dependencies * Another attempt to install devtools prior to dependencies * Add rcdk as well * Debug dep installation on travis * Fix package root for newer R version
- Loading branch information...
@@ -1,6 +1,31 @@ | ||
language: r | ||
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r | ||
language: R | ||
sudo: false | ||
cache: packages | ||
warnings_are_errors: true | ||
sudo: required | ||
before_install: | ||
- cd rcdk | ||
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) | ||
0 comments on commit
2ac7f5a