-
Notifications
You must be signed in to change notification settings - Fork 106
/
.travis.yml
40 lines (33 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
31
32
33
34
35
36
37
38
39
40
language: c
sudo: false
env:
matrix:
- R_PKG="$(basename $TRAVIS_REPO_SLUG)"
global:
secure: UTJJhiel0TE8NgLhE9lLtXcZiqWT7y2UObDZ8aAU1ZFiL9S4u/MTDU9Ea3pOGgzSWE1aUU7lquVjtf1funLpEwHyRXWHCfee+1e37AE7EN+gC7QclHoL6S7L2lIf0srMOiDkANyei342qoF7iYDXjDac1bfBlvk0z5kN3Qmcz/8=
addons:
apt:
sources:
- r-packages-precise
packages:
- r-base-dev
- r-recommended
install:
- "wget -q -O - http://yihui.name/xran/r-config | bash"
- "[ ! -d ~/bin ] && mkdir ~/bin || true"
- "export PATH=$HOME/bin:$PATH"
- "wget -q -O - https://github.com/yihui/crandalf/raw/master/inst/scripts/install-pandoc | bash"
- Rscript -e "if (!require('devtools')) install.packages('devtools')"
- Rscript -e "devtools::install_deps(dep = TRUE)"
cache:
directories:
- $HOME/R
- $HOME/bin
script:
- cd ..; rm -f *.tar.gz; R CMD build $R_PKG
- R CMD check ${R_PKG}_*.tar.gz --no-manual
- cd $R_PKG
# deploy to XRAN
after_success:
- set -e
- "(wget -q -O - http://yihui.name/xran/r-xran | bash)"