-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (39 loc) · 913 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
# Use C so we can set CXX ourselves manually
language: c
# Use trusty (which has some newer LLVM versions)
sudo: true
dist: trusty
# Install dependencies global dependencies
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libboost-dev
- libboost-program-options-dev
# Build matrix
compiler:
- gcc-4.9
- gcc-5
- gcc-6
- clang-3.5
- clang-3.6
- clang-3.8
env:
global:
- LDFLAGS=-Wl,--as-needed
- CTEST_OUTPUT_ON_FAILURE=1
matrix:
- LLVM_VERSION=3.8
# Main build scripts
install:
- export CXX=$(echo $CC | sed 's/gcc/g++/' | sed 's/clang/clang++/')
- if [[ $CXX == clang* ]]; then CCPKG=$CC; else CCPKG=$CXX; fi
- sudo apt-get install -y $CCPKG llvm-$LLVM_VERSION-dev
before_script:
- mkdir build
- cd build
- cmake .. -Wdev -DBROKEN_UBUNTU_LLVM=Y -DLLVM_ROOT=/usr/lib/llvm-$LLVM_VERSION
script:
- make VERBOSE=1
- make test