-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (41 loc) · 1.21 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
language: r
sudo: false
r: devel
cache: packages
latex: true
env:
matrix:
- CXX_OLEVEL=2 CXX=clang++
matrix:
include:
- os: linux
compiler: clang
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-5.0' ]
packages:
- llvm-5.0-dev
env:
- CXX_OLEVEL=2 CXX=clang++
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -q
- mkdir -p ~/.R/
- echo "CXX = `R CMD config CXX`" >> ~/.R/Makevars
- echo "CXXFLAGS = `R CMD config CXXFLAGS` -pedantic -g0 -flto -stdlib=libc++" >> ~/.R/Makevars
- echo "LDFLAGS += -flto -stdlib=libc++" >> ~/.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 42 R CMD build .
travis_wait 59 R CMD check PoolTestR*tar.gz
after_script:
- tar -ztvf PoolTestR_*.tar.gz
- echo ${NOT_CRAN}
after_success:
- travis_wait 40 tar -C .. -xf $PKG_TARBALL
after_failure:
- cat PoolTestR.Rcheck/00*