-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
52 lines (42 loc) · 1.2 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
sudo: required
dist: trusty
language: cpp
matrix:
include:
- compiler: gcc
addons: &gcc5
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
env: COMPILER=g++-5 TOOLCHAIN_FILE=gcc.cmake BUILD_TYPE=Debug
- compiler: gcc
addons: *gcc5
env: COMPILER=g++-5 TOOLCHAIN_FILE=gcc.cmake BUILD_TYPE=Release
- compiler: clang
addons: &clang37
apt:
sources:
- ubuntu-toolchain-r-test
#- llvm-toolchain-precise-3.7
packages:
#- clang-3.7
env: COMPILER=clang++-3.7 TOOLCHAIN_FILE=clang.cmake BUILD_TYPE=Debug
- compiler: clang
addons: *clang37
env: COMPILER=clang++-3.7 TOOLCHAIN_FILE=clang.cmake BUILD_TYPE=Release
install:
- sudo add-apt-repository ppa:adrozdoff/llvm-backport -y
- sudo apt-get update -q
- sudo apt-get install clang-3.7 -y
before_script:
- export CXX=$COMPILER
script:
- cmake --version
- mkdir build && cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain_files/$TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -G"Unix Makefiles" ..
- make
- ./test-sstl
- ./test-sstl-noexceptions