-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
176 lines (172 loc) · 5.34 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
language: cpp
sudo: false
branches:
except:
- build-cfg
matrix:
include:
# - os: osx
# osx_image: xcode9.4
# env: >
# COMPILER=clang++-5.0 TOOLSET=clang CPPSTD=1y
# BOOST_VER=1.66.0
- os: linux
dist: trusty
env: >
COMPILER=g++-4.8 TOOLSET=gcc-4.8 CPPSTD=11
BOOST_VER=1.67.0
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- libstdc++-4.8-dev
- os: linux
dist: precise
env: >
COMPILER=g++-4.9 TOOLSET=gcc-4.9 CPPSTD=11
BOOST_VER=1.67.0
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- libstdc++-4.9-dev
- os: linux
dist: precise
env: >
COMPILER=g++-6 TOOLSET=gcc-6 CPPSTD=11
BOOST_VER=1.67.0
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libstdc++-6-dev
- os: linux
dist: trusty
env: >
COMPILER=g++-7 TOOLSET=gcc-7 CPPSTD=11
BOOST_VER=1.67.0
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libstdc++-7-dev
- os: linux
dist: bionic
env: >
COMPILER=g++-10 TOOLSET=gcc-10 CPPSTD=latest
BOOST_VER=1.75.0
COVERAGE=ON
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- g++-10
- libstdc++-10-dev
- os: linux
dist: precise
env: >
COMPILER=clang++-3.6 TOOLSET=clang CPPSTD=1y
BOOST_VER=1.66.0
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- os: linux
dist: trusty
env: >
COMPILER=clang++-4.0 TOOLSET=clang CPPSTD=1y
BOOST_VER=1.66.0
# B2FLAGS="cxxflags=-v linkflags=-v --debug-configuration"
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- os: linux
dist: trusty
env: >
COMPILER=clang++-6.0 TOOLSET=clang CPPSTD=1y
BOOST_VER=1.67.0
COVERAGE=ON
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- clang-6.0
- os: linux
dist: focal
env: >
COMPILER=clang++-12 TOOLSET=clang CPPSTD=2a
BOOST_VER=1.75.0
COVERAGE=ON
#B2FLAGS="stdlib=libc++ cxxflags=-v linkflags=-v"
addons:
apt:
update: true
sources:
- sourceline: 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-12
- libc++-12-dev
- libc++abi-12-dev
env:
global:
#- CODECOV_TOKEN=:uuid-repo-token
install:
- |
if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
${CXX} --version
cd ${TRAVIS_BUILD_DIR}
############################################################################
# Install libc++ and libc++abi if needed
############################################################################
- |
if [[ "${CXX%%+*}" == "clang" ]]; then
bash <( curl -s https://raw.githubusercontent.com/serge-klim/cihelpers/master/travis/lib++.install)
[ $? -ne 0 ] && exit 1
export B2FLAGS="${B2FLAGS} cxxflags=-isystem${TRAVIS_BUILD_DIR}/llvm/out/include/c++/v1 linkflags=-L${TRAVIS_BUILD_DIR}/llvm/out/lib"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${TRAVIS_BUILD_DIR}/llvm/out/lib"
fi
############################################################################
# Download boost and build boost tests
############################################################################
- |
cd ${TRAVIS_BUILD_DIR}
bash <( curl -s https://raw.githubusercontent.com/serge-klim/cihelpers/master/travis/boost.install) toolset=${TOOLSET} cxxstd=${CPPSTD} ${B2FLAGS} address-model=64 threading=multi --user-config=${TRAVIS_BUILD_DIR}/user-cfg.jam --layout=versioned --with-test stage debug
export BOOST_ROOT=${TRAVIS_BUILD_DIR}/boost_${BOOST_VER//./_}
cd ${TRAVIS_BUILD_DIR}
- >
if [[ "${COVERAGE}" == "ON" ]]; then
export B2FLAGS="${B2FLAGS} cxxflags=\"--coverage\" linkflags=\"--coverage\""
fi
#- cd ${TRAVIS_BUILD_DIR} && curl --retry 5 -s https://raw.githubusercontent.com/serge-klim/cihelpers/master/user-cfg.jam > user-cfg.jam
script:
- ls ${BOOST_ROOT}
- ls ${BOOST_ROOT}/stage/lib
- cd ${TRAVIS_BUILD_DIR}/test
- ${BOOST_ROOT}/b2 toolset=${TOOLSET} cxxstd=${CPPSTD} ${B2FLAGS} address-model=64 threading=multi --user-config=${TRAVIS_BUILD_DIR}/user-cfg.jam -a --layout=versioned -sBOOST_ROOT=${BOOST_ROOT} -sBOOST_BUILD_PATH=${BOOST_ROOT} -sBOOST_VER=x64-${BOOST_VER%.*} -sBOOST_LIBS=${BOOST_ROOT}/stage/lib debug