-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
42 lines (35 loc) · 914 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
language: cpp
os: linux
dist: trusty
sudo: required
matrix:
include:
# GCC 8
- env: COMPILER=g++-8 BUILD_TYPE=Debug
addons: &gcc8
apt:
packages: g++-8
sources: ubuntu-toolchain-r-test
#- env: COMPILER=g++-8 BUILD_TYPE=Release
# addons: *gcc8
# Clang 6.0
- env: COMPILER=clang++-6.0 BUILD_TYPE=Debug
addons: &clang6
apt:
packages:
- clang-6.0
- g++-6
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
#- env: COMPILER=clang++-6.0 BUILD_TYPE=Release
# addons: *clang6
install:
- export CXX=${COMPILER}
- ${CXX} --version
script:
- cd "${TRAVIS_BUILD_DIR}"
- cd cmake/build
- cmake ../../ -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- cmake --build . --config $BUILD_TYPE --target test_advanced
- ./test_advanced