forked from mjskay/tidybayes.rethinking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·35 lines (31 loc) · 1010 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
language: r
# sudo is needed for R on travis-CI. See http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: required
# Be strict when checking our package
warnings_are_errors: true
# list suggested packages here too since they
# aren't installed automatically
r_binary_packages:
# won't compile under clang?
- runjags
- RCurl
- nloptr
- Cairo
r_packages:
- rstan
- coda
- modeest
- testthat
# NOT_CRAN and options in .Rprofile are workarounds for "cyclic dependency check" error
# see https://github.com/travis-ci/travis-ci/issues/4125
# Using clang instead of gcc because rstan won't compile on gcc on travis
env:
global:
- NOT_CRAN=true CXXFLAGS=-O2 CXX_OLEVEL=2 RCPP_VER=cran CXX=clang++ CPP=clang CC=clang
before_install:
- echo "options(repos = c(CRAN='http://cran.rstudio.com'))" > ~/.Rprofile
- mkdir -p ~/.R
- echo 'CXXFLAGS=-O2' > ~/.R/Makevars
- echo 'CC=clang' >> ~/.R/Makevars
- echo 'CPP=clang' >> ~/.R/Makevars
- echo 'CXX=clang++' >> ~/.R/Makevars