-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
76 lines (63 loc) · 2.64 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
#
# Copyright (c) 2018-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: trusty
env: CXX=clang++-4.0 VARIANT=valgrind
addons: { apt: { packages: ["clang-4.0", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-4.0"] } }
- os: linux
dist: trusty
env: CXX=clang++-5.0 VARIANT=valgrind
addons: { apt: { packages: ["clang-5.0", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-5.0"] } }
- os: linux
dist: trusty
env: CXX=clang++-6.0 VARIANT=valgrind
addons: { apt: { packages: ["clang-6.0", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-6.0"] } }
- os: linux
dist: trusty
env: CXX=clang++-7 VARIANT=valgrind
addons: { apt: { packages: ["clang-7", "libstdc++-7-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-7"] } }
- os: linux
dist: trusty
env: CXX=clang++-7 VARIANT=sanitizers
addons: { apt: { packages: ["clang-7", "libstdc++-7-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-7"] } }
- os: linux
dist: trusty
env: CXX=g++-7 VARIANT=valgrind
addons: { apt: { packages: ["g++-7", "libstdc++-7-dev"], sources: ["ubuntu-toolchain-r-test"] } }
- os: linux
dist: trusty
env: CXX=g++-7 VARIANT=coverage
addons: { apt: { packages: ["g++-7", "libstdc++-7-dev"], sources: ["ubuntu-toolchain-r-test"] } }
- os: osx
osx_image: xcode9.1
env: CXX=clang++ VARIANT=valgrind
- os: osx
osx_image: xcode10
env: CXX=clang++ VARIANT=valgrind
- os: osx
osx_image: xcode10.1
env: CXX=clang++ VARIANT=valgrind
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)
); fi
notifications:
on_success: change
on_failure: always
on_start: false