-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
151 lines (139 loc) · 3.22 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# Adapted from various sources, including:
# - Louis Dionne's Hana: https://github.com/ldionne/hana
# - Paul Fultz II's FIT: https://github.com/pfultz2/Fit
# - Eric Niebler's range-v3: https://github.com/ericniebler/range-v3
# - Gabi Melman spdlog: https://github.com/gabime/spdlog
sudo: false
language: cpp
addons: &gcc7
apt:
packages:
- doxygen
- g++-7
- libhdf5-dev
- librocksdb-dev
- python3-babel
- python3-bs4
- python3-docutils
- python3-babel
- python3-h5py
- python3-lxml
- python3-numpy
- python3-pip
- python3-pygments
- python3-pyparsing
- python3-setuptools
- python3-wheel
sources:
- ubuntu-toolchain-r-test
addons: &clang6
apt:
packages:
- clang-6.0
- doxygen
- libhdf5-dev
- librocksdb-dev
- python3-babel
- python3-bs4
- python3-docutils
- python3-h5py
- python3-lxml
- python3-numpy
- python3-pip
- python3-pygments
- python3-pyparsing
- python3-setuptools
- python3-wheel
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-bionic-6.0
addons: &clang7
apt:
packages:
- clang-7
- libhdf5-dev
- librocksdb-dev
- python3-babel
- python3-bs4
- python3-docutils
- python3-h5py
- python3-lxml
- python3-numpy
- python3-pip
- python3-pygments
- python3-pyparsing
- python3-setuptools
- python3-wheel
- valgrind
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-bionic-7
addons: &clang8
apt:
packages:
- clang-8
- doxygen
- libhdf5-dev
- librocksdb-dev
- python3-babel
- python3-bs4
- python3-docutils
- python3-h5py
- python3-lxml
- python3-numpy
- python3-pip
- python3-pygments
- python3-pyparsing
- python3-setuptools
- python3-wheel
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-bionic-8
matrix:
allow_failures:
- os: osx
include:
# Test gcc-7: C++11
- env: GCC_VERSION=7 CXX_OPTIMIZE=OFF CPP=11
os: linux
dist: bionic
addons: *gcc7
# Test clang-6.0: C++11
- env: CLANG_VERSION=6.0 CXX_OPTIMIZE=OFF CPP=11
os: linux
dist: bionic
addons: *clang6
# Test clang-7: C++11
- env: CPP_CHECK=yes CLANG_VERSION=7 CXX_OPTIMIZE=OFF CPP=11 CTEST_ACTION="-T memcheck"
os: linux
dist: bionic
addons: *clang7
# Test clang-8: C++11
- env: CLANG_VERSION=8 CXX_OPTIMIZE=OFF CPP=11
os: linux
dist: bionic
addons: *clang8
# osx
- env: CXX_OPTIMIZE=OFF CPP=11
os: osx
addons:
homebrew:
update: true
packages:
- doxygen
- hdf5
- llvm
- numpy
- rocksdb
before_script:
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CXX="clang++" CC="clang"; ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"; fi
- which $CXX
- which $CC
- $CXX --version
- cmake --version
script:
- dev/travis-build
notifications:
email: false