-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
49 lines (37 loc) · 793 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
41
42
43
44
45
46
47
48
49
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
- LIBSTDC_VERSION=6
- CLANG_VERSION=3.7
matrix:
allow_failures:
- os: linux
- compiler: gcc
before_install:
# Setup cmake
- sh scripts/install-cmake.sh
# Prepare compilers
- if [[ "$CXX" == "g++" || "$CC" == "gcc" ]]; then sh scripts/install-gcc.sh; fi
- if [[ "$CXX" == "clang++" || "$CC" == "clang" ]]; then sh scripts/install-clang.sh; fi
#- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
#- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
install:
# Before cmake
- rm -rf build/
- mkdir build
- cd build
- cmake ..
script:
# Build with cmake
- make
notifications:
email: false
sudo: required
cache:
- apt