forked from CDK-R/cdkr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (26 loc) · 1020 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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)