-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
30 lines (30 loc) · 1.01 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
language: cpp
root: true
compiler:
- gcc
- clang
os:
- linux
- osx
before_install:
- echo $LANG
- echo $LC_ALL
- export CXXFLAGS="$CXXFLAGS -std=gnu++11";
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -y install swig r-base; fi
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CXX" == "g++" ]; then export CXX="g++-4.8"; fi
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install swig r; fi
install:
- if test -n "$CPP11"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++11 -Wall -Wextra" "CFLAGS=-std=c11 -Wall -Wextra") && export CSTD=c11 && export CPPSTD=c++11; fi
jobs:
allow_failures:
- compiler: clang
script:
- make
notifications:
email:
on_success: change
on_failure: change
env: CPP11=1