forked from yihui/servr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (24 loc) · 987 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
language: c
env:
matrix:
- R_PKG="$(basename $TRAVIS_REPO_SLUG)"
global:
secure: RXpswOOXf6qEOfiZWZXV4C69X9ObrfKFWrOi5WY/m3K844uL3Dxeeqr+Ei9JlIVAS1lBp1Hpt5In4CXTXKrfdwuN7XpOg1EId6hX8UJ5BpOCSDJ9HA/R80JyaeC5Vx9Uiqbxji9x8Zw7awBV/PqnNcUI9NcUmKtut2RsNsBALvs=
install:
- sudo apt-add-repository -y "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/"
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
- sudo apt-add-repository -y ppa:marutter/c2d4u
- sudo apt-get update
- sudo apt-get install r-base-dev r-cran-httpuv r-cran-devtools
- "wget -q -O - http://yihui.name/xran/r-config | bash"
- Rscript -e "devtools::install_deps(dep = TRUE)"
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)"
after_failure:
- cd ..; for i in `ls *.Rcheck/00*`; do cat $i; done