forked from giabaio/BCEA
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
82 lines (71 loc) · 2.47 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
#cache: packages
warnings_are_errors: false
#sudo: required
#
#r:
# - release
# - devel
before_install:
- echo "options(repos = c(CRAN='http://cran.rstudio.com'))" > ~/.Rprofile
- sudo apt-get update
- sudo add-apt-repository -y ppa:marutter/rrutter
- sudo apt-get update
- sudo apt-get install r-cran-rjags
# - Rscript -e 'update.packages(ask = FALSE)'
#
# before_install:
# - fname=travis_helpers.sh
# - wget -O ${fname} http://bit.ly/travis_helpers
# - cat ${fname}; source ${fname}; rm ${fname}
# - cat DESCRIPTION
# - jags_install
# - export PROJ_DIR=`basename ${TRAVIS_BUILD_DIR}`
# - export PACKAGE_NAME=`package_name`
#
#install:
# - Rscript -e 'install.packages(c("ggplot2", "R2OpenBUGS", "mcmcplots", "ggmcmc","ggthemes"), repos = "http://cran.rstudio.com")'
# - Rscript -e 'install.packages("R2jags", repos = "http://cran.rstudio.com")'
# - Rscript -e 'install.packages("INLA", repos = c("http://www.math.ntnu.no/inla/R/stable", "http://cran.rstudio.com"))'
# - Rscript -e 'install.packages(c("shiny","shinythemes"), repos="http://cran.rstudio.com")'
#
# install:
# - Rscript -e 'install.packages("devtools", repos = "http://cran.rstudio.com")'
# - Rscript -e 'install.packages(c("ggplot2", "R2OpenBUGS", "ldr", "splancs"), repos = "http://cran.rstudio.com")'
# - Rscript -e 'install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)'
# - Rscript -e 'install.packages(c("shiny","shinythemes","R2jags"), repos="http://cran.rstudio.com")'
#
language: r
r_binary_packages:
- rjags
# - R2jags # CRAN doesnt like this
# script:
# - echo "Overriding travis R script"
#
# jobs:
# include:
# - script:
# - cd ..
# - travis_wait 100 R CMD build ${PROJ_DIR} ${R_BUILD_ARGS}
# - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
# - travis_wait 100 R CMD check ${R_CHECK_ARGS} "${PKG_FILE_NAME}";
# os: linux
# - script:
# - cd ..
# - travis_wait 100 R CMD build ${PROJ_DIR} ${R_BUILD_ARGS}
# - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
# - travis_wait 100 R CMD check ${R_CHECK_ARGS} "${PKG_FILE_NAME}";
# os: osx
#
# env:
# global:
# - NOT_CRAN=TRUE
# - RGL_USE_NULL=TRUE
# - R_BUILD_ARGS=" --no-manual"
# - R_CHECK_ARGS=" --timings --as-cran --no-manual"
#
# notifications:
# email:
# on_success: change
# on_failure: change
#