forked from bbolker/broom.mixed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.51 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
language: r
sudo: false
r:
- release
- devel
# - oldrel
cache: packages
latex: true
r_build_args: '--no-build-vignettes --no-manual'
r_check_args: '--ignore-vignettes --no-manual'
r_github_packages:
- jimhester/covr
env:
global:
- _R_CHECK_FORCE_SUGGESTS_: false
matrix:
- CXX_OLEVEL=2 CXX=clang++
before_install:
- mkdir -p ~/.R/
- echo "CXX14FLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -Wno-macro-redefined" >> ~/.R/Makevars
- echo "CXX14=g++ -std=c++1y -fPIC" >> ~/.R/Makevars
- 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
- sudo add-apt-repository -y "ppa:marutter/rrutter3.5"
- sudo add-apt-repository -y "ppa:marutter/c2d4u3.5"
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends r-cran-rstan r-cran-rstanarm
script:
- |
travis_wait 59 R CMD build .
echo "options(repos=list(CRAN='https://cran.rstudio.com')); install.packages('devtools')" | R --vanilla --slave
travis_wait 59 R CMD check broom.mixed*tar.gz
after_script:
- tar -ztvf broom.mixed_*.tar.gz
- echo ${NOT_CRAN}
after_success:
- travis_wait 40 tar -C .. -xf $PKG_TARBALL
- travis_wait 40 Rscript -e 'covr::coveralls()'