-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
54 lines (48 loc) · 1.74 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
52
53
54
language: c++
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- g++-5
- clang-3.8
- binutils
matrix:
include:
# Linux GCC Builds
- { compiler: gcc, env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 COMPILER_ID=gcc ADDITIONAL_FLAGS="-fuse-ld=gold" BUILD_TYPE='Release' SANITIZER="" }
- { compiler: gcc, env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 COMPILER_ID=gcc ADDITIONAL_FLAGS="-fuse-ld=gold" BUILD_TYPE='Coverage' SANITIZER="" }
- { compiler: gcc, env: C_COMPILER=gcc-5 CXX_COMPILER=g++-5 COMPILER_ID=gcc ADDITIONAL_FLAGS="-fuse-ld=gold" BUILD_TYPE='Debug' SANITIZER="" }
# Linux Clang Builds
- { compiler: clang, env: C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 COMPILER_ID=clang ADDITIONAL_FLAGS="-fuse-ld=gold" BUILD_TYPE='Release' SANITIZER="" }
- { compiler: clang, env: C_COMPILER=clang-3.8 CXX_COMPILER=clang++-3.8 COMPILER_ID=clang ADDITIONAL_FLAGS="-fuse-ld=gold" BUILD_TYPE='Debug' SANITIZER="" }
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
echo
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
# Seems already installed now
# brew install cmake
cmake --version
fi
before_script:
- export CC=${C_COMPILER}
- export CXX=${CXX_COMPILER}
- cd ${TRAVIS_BUILD_DIR}
- mkdir -p Build
- cd Build
- cmake --version
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="${ADDITIONAL_FLAGS}" -DPROJECT_BUILD_SANITIZER_TYPE=${SANITIZER}
script:
- make -j2
- ctest -V
after_success:
- |
if [[ "${BUILD_TYPE}" == "Coverage" ]]; then
bash <(curl -s https://codecov.io/bash)
fi