-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.travis.yml
More file actions
58 lines (58 loc) · 1.58 KB
/
.travis.yml
File metadata and controls
58 lines (58 loc) · 1.58 KB
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
55
56
57
58
language: cpp
matrix:
include:
- os: linux
dist: xenial
env: BUILD_TYPE=Debug EXTRA_CMAKE=-DCOVERAGE=On GCOV=gcov-8 MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- os: linux
dist: xenial
env: BUILD_TYPE=Release STATIC=On MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- os: linux
dist: xenial
compiler: clang
env: BUILD_TYPE=Debug
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- os: linux
dist: xenial
compiler: clang
env: BUILD_TYPE=Release STATIC=On
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- os: osx
osx_image: xcode10.1
env: BUILD_TYPE=Release MATRIX_EVAL="brew link --overwrite gcc && CC=gcc-9 && CXX=g++-9"
# we don't build with clang on osx yet, at least not until 10.14, and probably not even then.
# - os: osx
# osx_image: xcode10.1
# env: BUILD_TYPE=Release
before_install:
- eval "${MATRIX_EVAL}"
script:
- mkdir out
- cd out
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${EXTRA_CMAKE} ..
- cmake --build . -- -j2
- ctest --output-on-failure -D ExperimentalBuild -j2
- ctest --output-on-failure -D ExperimentalTest -j2
- '[[ -z "${GCOV}" ]] || bash <(curl -s https://codecov.io/bash) -x ${GCOV}'