forked from stan-dev/rstanarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 976 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: r
sudo: false
r: devel
cache: packages
latex: false
r_build_args: '--no-build-vignettes'
r_check_args: '--ignore-vignettes --no-examples'
r_github_packages:
- jimhester/covr
env:
matrix:
- CXX_OLEVEL=2 CXX=clang++
before_install:
- mkdir -p ~/.R/
- echo "CXX = `R CMD config CXX`" >> ~/.R/Makevars
- echo "CXXFLAGS = `R CMD config CXXFLAGS` -pedantic -g0" >> ~/.R/Makevars
- export CLANG_EXTRA_ARG=""
- if [[ $CXX = "clang++" ]] ; then export CLANG_EXTRA_ARG=" -Qunused-arguments -fcolor-diagnostics " ; fi
- sed -i.bak "s/ g++/ ${CXX}${CLANG_EXTRA_ARG}/" ~/.R/Makevars
- sed -i.bak "s/O[0-3]/O$CXX_OLEVEL/" ~/.R/Makevars
script:
- |
travis_wait R CMD build .
travis_wait 40 R CMD check rstanarm*tar.gz
after_script:
- tar -ztvf rstanarm_*.tar.gz
- echo ${NOT_CRAN}
after_success:
- travis_wait 40 tar -C .. -xf $PKG_TARBALL
- travis_wait 40 Rscript -e 'covr::codecov()'
after_failure:
- cat rstanarm.Rcheck/00*