forked from boost-ext/ut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (73 loc) · 2.23 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Copyright (c) 2019 Kris Jusiak (kris at jusiak dot net)
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
sudo: false
matrix:
fast_finish: true
include:
- os: linux
dist: xenial
env: CXX=clang++-9 VARIANT=valgrind
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-9
- libstdc++-9-dev
- valgrind
- os: linux
dist: xenial
env: CXX=clang++-9 VARIANT=sanitizers
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-9
- libstdc++-9-dev
- valgrind
- os: linux
dist: xenial
env: CXX=g++-9 VARIANT=valgrind
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- libstdc++-9-dev
- valgrind
- os: linux
dist: xenial
env: CXX=g++-9 GCOV=gcov-9 VARIANT=coverage
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- libstdc++-9-dev
script:
- if [ "${VARIANT}" == "valgrind" ]; then (
cmake -Bbuild/debug -DCMAKE_BUILD_TYPE=Debug -DENABLE_MEMCHECK=ON -H. && cmake --build build/debug &&
cmake -Bbuild/release -DCMAKE_BUILD_TYPE=Release -DENABLE_MEMCHECK=ON -H. && cmake --build build/release
); fi
- if [ "${VARIANT}" == "sanitizers" ]; then (
cmake -Bbuild/debug/sanitizers -DCMAKE_BUILD_TYPE=Debug -DENABLE_SANITIZERS=ON -H. && cmake --build build/debug/sanitizers
); fi
- if [ "${VARIANT}" == "coverage" ]; then (
cmake -Bbuild/debug/coverage -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -H. && cmake --build build/debug/coverage &&
bash <(curl -s https://codecov.io/bash) -x "${GCOV}"
); fi
notifications:
on_success: change
on_failure: always
on_start: false