-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
267 lines (222 loc) · 9.52 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# Copyright 2016-2020 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
language: cpp
sudo: false
dist: xenial
branches:
only:
- master
- develop
- /feature\/.*/
env:
matrix:
- BOGUS_JOB=true
addons:
apt:
packages:
- libopenmpi-dev
matrix:
exclude:
- env: BOGUS_JOB=true
include:
# find_package(boost_filesystem)
- env: LIB=filesystem
- env: LIB=filesystem
os: osx
# find_package(Boost COMPONENTS filesystem)
- env: LIB=filesystem UBP=1
- env: LIB=filesystem UBP=1
os: osx
# --layout=versioned
- env: LIB=filesystem LAYOUT=versioned
- env: LIB=filesystem LAYOUT=versioned TOOLSET=clang
os: osx
# --layout=tagged
- env: LIB=filesystem LAYOUT=tagged
- env: LIB=filesystem LAYOUT=tagged
os: osx
# build with g++, use with clang++
- env: LIB=filesystem
compiler: clang++
# same, with tagged layout
- env: LIB=filesystem LAYOUT=tagged
compiler: clang++
# build with clang++, use with g++
- env: LIB=filesystem TOOLSET=clang
# same, with tagged layout
- env: LIB=filesystem TOOLSET=clang LAYOUT=tagged
# build with both gcc and clang, use with gcc
- env: LIB=filesystem LAYOUT=versioned TOOLSET=gcc,clang
# build with both gcc and clang, use with clang
- env: LIB=filesystem LAYOUT=versioned TOOLSET=gcc,clang
compiler: clang++
# build with gcc, use with clang (w/ toolset override)
- env: LIB=filesystem LAYOUT=versioned Boost_COMPILER=gcc5
compiler: clang++
# same, w/ -gcc5
- env: LIB=filesystem LAYOUT=versioned Boost_COMPILER=-gcc5
compiler: clang++
# shared
- env: LIB=filesystem LINK=shared
- env: LIB=filesystem LINK=shared Boost_USE_STATIC_LIBS=OFF
# static
- env: LIB=filesystem Boost_USE_STATIC_LIBS=ON
- env: LIB=filesystem LINK=static
- env: LIB=filesystem LINK=static Boost_USE_STATIC_LIBS=ON
# threading=multi,single
- env: LIB=filesystem LAYOUT=tagged-1.66 THREADING=multi,single
- env: LIB=filesystem LAYOUT=tagged-1.66 THREADING=multi,single Boost_USE_MULTITHREADED=ON
- env: LIB=filesystem LAYOUT=tagged-1.66 THREADING=multi,single Boost_USE_MULTITHREADED=OFF
# threading=single
- env: LIB=filesystem THREADING=single
- env: LIB=filesystem THREADING=single Boost_USE_MULTITHREADED=OFF
# staged
- env: LIB=filesystem STAGE=1
- env: LIB=filesystem STAGE=1
os: osx
- env: LIB=filesystem UBP=1 STAGE=1
- env: LIB=filesystem UBP=1 STAGE=1
os: osx
- env: LIB=filesystem UBP=1 STAGE=1 STAGEDIR=stage64-gcc5
- env: LIB=filesystem UBP=1 STAGE=1 STAGEDIR=.
- env: LIB=filesystem UBP=1 STAGE=1 STAGELIBDIR=lib64-gcc5
# ALL
- env: LIB=filesystem USE_ALL_COMPONENTS=1
# Boost_INCLUDE_DIRS, old style
- env: LIB=headers
# other libraries
- env: LIB=atomic
- env: LIB=atomic UBP=1
- env: LIB=chrono
- env: LIB=chrono UBP=1
- env: LIB=container
- env: LIB=container UBP=1
- env: LIB=iostreams
- env: LIB=iostreams UBP=1
- env: LIB=iostreams UBP=1 Boost_USE_STATIC_LIBS=ON
- env: LIB=iostreams STAGE=1
- env: LIB=iostreams UBP=1 STAGE=1
- env: LIB=log
- env: LIB=log UBP=1
- env: LIB=log UBP=1 Boost_USE_STATIC_LIBS=ON
- env: LIB=log USE_ALL_COMPONENTS=1
- env: LIB=log LAYOUT=tagged-1.66 THREADING=multi,single
- env: LIB=mpi CXXSTD=11
- env: LIB=mpi UBP=1 CXXSTD=11
- env: LIB=mpi UBP=1 STAGE=1 CXXSTD=11
- env: LIB=program_options
- env: LIB=program_options UBP=1
- env: LIB=python PYTHON=2.7,3.5
- env: LIB=python PYTHON=2.7,3.5 USE_PYTHON_VERSION=2.7
- env: LIB=python PYTHON=2.7,3.5 USE_PYTHON_VERSION=3.5
- env: LIB=python UBP=1 PYTHON=2.7,3.5
- env: LIB=python UBP=1 PYTHON=2.7,3.5 USE_PYTHON_VERSION=2.7
- env: LIB=python UBP=1 PYTHON=2.7,3.5 USE_PYTHON_VERSION=3.5
- env: LIB=python PYTHON=2.7,3.5 USE_PYTHON_VERSION=2.7 USE_PYTHON_COMPONENT=python27
- env: LIB=python PYTHON=2.7,3.5 USE_PYTHON_VERSION=3.5 USE_PYTHON_COMPONENT=python35
- env: LIB=python PYTHON=2.7,3.5 USE_PYTHON_VERSION=2.7 USE_PYTHON_COMPONENT=python2
- env: LIB=python PYTHON=2.7,3.5 USE_PYTHON_VERSION=3.5 USE_PYTHON_COMPONENT=python3
- env: LIB=random
- env: LIB=random UBP=1
- env: LIB=random BUILD_SHARED_LIBS=ON
- env: LIB=random UBP=1 BUILD_SHARED_LIBS=ON
- env: LIB=regex
- env: LIB=regex UBP=1
- env: LIB=regex UBP=1 Boost_USE_STATIC_LIBS=ON
- env: LIB=serialization
- env: LIB=serialization UBP=1
- env: LIB=system
- env: LIB=system UBP=1
- env: LIB=test
- env: LIB=test UBP=1
- env: LIB=thread
- env: LIB=thread UBP=1
- env: LIB=wave
- env: LIB=wave UBP=1
- env: ALL=1
install:
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
- cd ..
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init --jobs 3
- rm -rf tools/boost_install/*
- cp -r $TRAVIS_BUILD_DIR/* tools/boost_install
- ./bootstrap.sh
- ./b2 headers
- |-
echo "using python : 2.7 ;" >> ~/user-config.jam
- |-
echo "using python : 3.5 ;" >> ~/user-config.jam
- |-
echo "using mpi ;" >> ~/user-config.jam
- ./b2 -j3 --prefix=$HOME/.local python=2.7,3.5 install
script:
- cd tools/boost_install/test/filesystem
- mkdir __build__ && cd __build__
- if [ -z "$STAGE" ]; then export CMAKE_INSTALL="-DCMAKE_INSTALL_PREFIX=~/.local"; fi
- cmake -DCMAKE_INSTALL_PREFIX=~/.local -DUSE_ALL_COMPONENTS=1 -DBoost_DEBUG=ON ..
- cmake --build .
- export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH
- export DYLD_LIBRARY_PATH=$HOME/.local/lib:$DYLD_LIBRARY_PATH
- cmake --build . --target check
- env: ALL_CONFIG=1
install:
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
- cd ..
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init --jobs 3
- rm -rf tools/boost_install/*
- cp -r $TRAVIS_BUILD_DIR/* tools/boost_install
- ./bootstrap.sh
- ./b2 headers
- |-
echo "using python : 2.7 ;" >> ~/user-config.jam
- |-
echo "using python : 3.5 ;" >> ~/user-config.jam
- |-
echo "using mpi ;" >> ~/user-config.jam
- ./b2 -j3 --prefix=$HOME/.local python=2.7,3.5 install
script:
- cd tools/boost_install/test/filesystem
- mkdir __build__ && cd __build__
- if [ -z "$STAGE" ]; then export CMAKE_INSTALL="-DCMAKE_INSTALL_PREFIX=~/.local"; fi
- cmake -DCMAKE_INSTALL_PREFIX=~/.local -DUSE_ALL_COMPONENTS_CONFIG=1 -DBoost_DEBUG=ON ..
- cmake --build .
- export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH
- export DYLD_LIBRARY_PATH=$HOME/.local/lib:$DYLD_LIBRARY_PATH
- cmake --build . --target check
install:
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
- cd ..
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init --jobs 3 tools/boostdep libs/assert libs/config libs/core libs/$LIB
- python tools/boostdep/depinst/depinst.py -X test -g "--jobs 3" $LIB
- rm -rf tools/boost_install/*
- cp -r $TRAVIS_BUILD_DIR/* tools/boost_install
- ./bootstrap.sh
- ./b2 headers
- if [ -z "$STAGE" ]; then ./b2 -j3 --prefix=$HOME/.local --with-headers ${LAYOUT:+--layout=$LAYOUT} ${TOOLSET:+toolset=$TOOLSET} install; fi
script:
- |-
echo "using python : 2.7 ;" >> ~/user-config.jam
- |-
echo "using python : 3.5 ;" >> ~/user-config.jam
- |-
echo "using mpi ;" >> ~/user-config.jam
- if [ -z "$STAGE" ]; then export B2_INSTALL="--prefix=$HOME/.local install"; fi
- ./b2 -j3 --with-$LIB ${LAYOUT:+--layout=$LAYOUT} ${STAGEDIR:+--stagedir=$STAGEDIR} ${STAGELIBDIR:+--stage-libdir=$STAGELIBDIR} ${TOOLSET:+toolset=$TOOLSET} ${LINK:+link=$LINK} ${PYTHON:+python=$PYTHON} ${THREADING:+threading=$THREADING} ${CXXSTD:+cxxstd=$CXXSTD} ${B2_INSTALL}
- cd tools/boost_install/test/$LIB
- mkdir __build__ && cd __build__
- if [ -z "$STAGE" ]; then export CMAKE_INSTALL="-DCMAKE_INSTALL_PREFIX=~/.local"; fi
- cmake ${CMAKE_INSTALL} -DUSE_STAGED_BOOST=${STAGE-0} ${STAGEDIR:+-DBoost_ROOT=$TRAVIS_BUILD_DIR/../boost-root/$STAGEDIR} ${STAGELIBDIR:+-DBoost_ROOT=$TRAVIS_BUILD_DIR/../boost-root/$STAGELIBDIR/cmake} -DUSE_BOOST_PACKAGE=${UBP-0} -DUSE_ALL_COMPONENTS=${USE_ALL_COMPONENTS-0} ${USE_PYTHON_VERSION:+-DUSE_PYTHON_VERSION=$USE_PYTHON_VERSION} ${USE_PYTHON_COMPONENT:+-DUSE_PYTHON_COMPONENT=$USE_PYTHON_COMPONENT} ${BUILD_SHARED_LIBS:+-DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS} -DBoost_VERBOSE=ON ${Boost_USE_STATIC_LIBS:+-DBoost_USE_STATIC_LIBS=$Boost_USE_STATIC_LIBS} ${Boost_COMPILER:+-DBoost_COMPILER=$Boost_COMPILER} ${Boost_USE_MULTITHREADED:+-DBoost_USE_MULTITHREADED=$Boost_USE_MULTITHREADED} ..
- VERBOSE=1 cmake --build .
- export LD_LIBRARY_PATH=$HOME/.local/lib:$TRAVIS_BUILD_DIR/../boost-root/stage/lib:$LD_LIBRARY_PATH
- export DYLD_LIBRARY_PATH=$HOME/.local/lib:$TRAVIS_BUILD_DIR/../boost-root/stage/lib:$DYLD_LIBRARY_PATH
- cmake --build . --target check
notifications:
email:
on_success: always