Blame view

3rdparty/boost_1_81_0/libs/beast/azure-pipelines.yml 12.8 KB
4b38bd9c   Hu Chunming   提交_GLIBCXX_USE_CX...
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
  variables:
    GIT_BRANCH: $(Build.SourceBranch)
  
  jobs:
    - job: 'LinuxCoverage'
      pool:
        vmImage: 'ubuntu-16.04'
      container:
        image: djarek/boost-beast-ci:latest
        options: --privileged
      steps:
        - bash: |
              sudo apt update && sudo apt install -y g++ lcov
          displayName: Get dependencies
        - bash: |
              set -e
              export BUILD_DIR=$(pwd)
              cd ..
              $BUILD_DIR/tools/get-boost.sh $GIT_BRANCH $BUILD_DIR
              cd boost-root
              export CXX=g++ CC=gcc
              ./bootstrap.sh || cat bootstrap.log
          displayName: Get Boost
        - bash: |
              set -e
              cd ../boost-root
              ./b2 libs/beast/test//run-fat-tests toolset=gcc coverage=on link=static cxxstd=11 -j2
              libs/beast/tools/coverage.sh
          env:
              CODECOV_TOKEN: $(CODECOV_TOKEN)
          displayName: Build & Run tests
    - job: 'Linux'
      pool:
        vmImage: 'ubuntu-16.04'
      container:
        image: djarek/boost-beast-ci:latest
        options: --privileged
      strategy:
        matrix:
          GCC 9 C++17 Release:
            TOOLSET: gcc
            CXX: g++-9
            PACKAGES: g++-9
            VARIANT: release
            CXXSTD: 17
            B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
          GCC 9 C++11 HEADER_ONLY NO_DEPRECATED:
            TOOLSET: gcc
            CXX: g++-9
            PACKAGES: g++-9
            VARIANT: release
            B2_FLAGS: <boost.beast.separate-compilation>off <boost.beast.allow-deprecated>off
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC 9 C++11 NO_DEPRECATED NO_TLS:
            TOOLSET: gcc
            CXX: g++-9
            PACKAGES: g++-9
            VARIANT: release
            B2_FLAGS: <boost.beast.allow-deprecated>off <define>BOOST_NO_CXX11_THREAD_LOCAL
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC 9 C++11 UBASAN:
            TOOLSET: gcc
            CXX: g++-9
            PACKAGES: g++-9
            VARIANT: debug
            B2_FLAGS: <address-sanitizer>norecover <undefined-sanitizer>norecover
            # use GOLD to workaround UBSAN linker issue in gcc 7/8
            # https://stackoverflow.com/questions/50024731/ld-unrecognized-option-push-state-no-as-needed
            CXX_FLAGS: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-fuse-ld=gold
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC 9 C++11 TSAN:
            TOOLSET: gcc
            CXX: g++-9
            PACKAGES: g++-9
            VARIANT: release
            B2_FLAGS: <thread-sanitizer>norecover
            CXX_FLAGS: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer"
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC 8 C++17 Release:
            TOOLSET: gcc
            CXX: g++-8
            PACKAGES: g++-8
            VARIANT: release
            CXXSTD: 17
            B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
          GCC 8 C++11 HEADER_ONLY NO_DEPRECATED:
            TOOLSET: gcc
            CXX: g++-8
            PACKAGES: g++-8
            VARIANT: release
            B2_FLAGS: <boost.beast.separate-compilation>off <boost.beast.allow-deprecated>off
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC 8 C++11 UBASAN:
            TOOLSET: gcc
            CXX: g++-8
            PACKAGES: g++-8
            VARIANT: debug
            B2_FLAGS: <address-sanitizer>norecover <undefined-sanitizer>norecover
            # use GOLD to workaround UBSAN linker issue in gcc 7/8
            # https://stackoverflow.com/questions/50024731/ld-unrecognized-option-push-state-no-as-needed
            CXX_FLAGS: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-fuse-ld=gold
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC 8 C++11 TSAN:
            TOOLSET: gcc
            CXX: g++-8
            PACKAGES: g++-8
            VARIANT: release
            B2_FLAGS: <thread-sanitizer>norecover
            CXX_FLAGS: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer"
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC 7 C++14 Valgrind:
            TOOLSET: gcc
            CXX: g++-7
            PACKAGES: g++-7 valgrind
            VARIANT: release
            B2_FLAGS: <define>BOOST_BEAST_TEST_STATIC_PRNG_SEED <valgrind>on <testing.launcher>"valgrind --track-origins=yes --error-exitcode=1 --max-stackframe=16000000 --suppressions=libs/beast/tools/valgrind.supp"
            CXXSTD: 14
            B2_TARGETS: libs/beast/test//run-fat-tests
          GCC Default C++11 Release:
            TOOLSET: gcc
            CXX: g++
            PACKAGES: g++
            VARIANT: release
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
          Clang 6.0 C++11 Debug:
            TOOLSET: clang
            CXX: clang++-6.0
            PACKAGES: clang-6.0
            VARIANT: debug
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
          Clang 7 libc++ C++14 Valgrind:
            TOOLSET: clang
            CXX: clang++-7
            PACKAGES: clang-7 libc++-7-dev libc++abi-7-dev valgrind
            VARIANT: release
            B2_FLAGS: <valgrind>on <testing.launcher>"valgrind --track-origins=yes --error-exitcode=1 --max-stackframe=16000000 --suppressions=libs/beast/tools/valgrind.supp"
            CXXSTD: 14
            CXX_FLAGS: <cxxflags>"-stdlib=libc++" <linkflags>"-stdlib=libc++"
            B2_TARGETS: libs/beast/test//run-fat-tests
          Clang 7 C++11 Debug:
            TOOLSET: clang
            CXX: clang++-7
            PACKAGES: clang-7
            VARIANT: debug
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
          Clang 7 C++14 Release:
            TOOLSET: clang
            CXX: clang++-7
            PACKAGES: clang-7
            VARIANT: release
            CXXSTD: 14
            B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
          Clang Default C++11 Debug:
            TOOLSET: clang
            CXX: clang++
            PACKAGES: clang
            VARIANT: debug
            CXXSTD: 11
            B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
          Clang 8 libc++ C++14 UBASAN:
            TOOLSET: clang
            CXX: clang++-8
            PACKAGES: clang-8 libc++-8-dev libc++abi-8-dev
            VARIANT: release
            B2_FLAGS: <address-sanitizer>norecover <undefined-sanitizer>norecover
            UBSAN_OPTIONS: print_stacktrace=1
            CXXSTD: 14
            CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
            B2_TARGETS: libs/beast/test//run-fat-tests
          Clang 8 libc++ C++14 TSAN:
            TOOLSET: clang
            CXX: clang++-8
            PACKAGES: clang-8 libc++-8-dev libc++abi-8-dev
            VARIANT: release
            B2_FLAGS: <thread-sanitizer>norecover
            CXXSTD: 14
            CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
            B2_TARGETS: libs/beast/test//run-fat-tests
          Clang 9 libc++ C++14 Release HEADER_ONLY NO_DEPRECATED:
            TOOLSET: clang
            CXX: clang++-9
            PACKAGES: clang-9 libc++-9-dev libc++abi-9-dev
            VARIANT: release
            B2_FLAGS: <boost.beast.separate-compilation>off <boost.beast.allow-deprecated>off
            CXXSTD: 14
            CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
            B2_TARGETS: libs/beast/test//run-fat-tests
          Clang 9 libc++ C++17 UBASAN:
            TOOLSET: clang
            CXX: clang++-9
            PACKAGES: clang-9 libc++-9-dev libc++abi-9-dev
            VARIANT: release
            B2_FLAGS: <address-sanitizer>norecover <undefined-sanitizer>norecover
            UBSAN_OPTIONS: print_stacktrace=1
            CXXSTD: 17
            CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
            B2_TARGETS: libs/beast/test//run-fat-tests
          Clang 9 libc++ C++17 TSAN:
            TOOLSET: clang
            CXX: clang++-9
            PACKAGES: clang-9 libc++-9-dev libc++abi-9-dev
            VARIANT: release
            B2_FLAGS: <thread-sanitizer>norecover
            CXXSTD: 17
            CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
            B2_TARGETS: libs/beast/test//run-fat-tests
          Clang 9 libc++ C++11 Release HEADER_ONLY NO_DEPRECATED:
            TOOLSET: clang
            CXX: clang++-9
            PACKAGES: clang-9 libc++-9-dev libc++abi-9-dev
            VARIANT: release
            B2_FLAGS: <boost.beast.separate-compilation>off <boost.beast.allow-deprecated>off
            CXXSTD: 11
            CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
            B2_TARGETS: libs/beast/test//run-fat-tests
      steps:
        - bash: |
              sudo apt update && sudo apt install -y $PACKAGES
          displayName: Get dependencies
        - bash: |
              set -e
              export BUILD_DIR=$(pwd)
              cd ..
              $BUILD_DIR/tools/get-boost.sh $GIT_BRANCH $BUILD_DIR
              cd boost-root
              ./bootstrap.sh || cat bootstrap.log
              cp libs/beast/tools/user-config.jam ~/user-config.jam
              echo "using $TOOLSET : : $(which $CXX) : $CXX_FLAGS ;" >> ~/user-config.jam
              echo "project : requirements $B2_FLAGS ;" >> ~/user-config.jam
          displayName: Get Boost
        - bash: |
              set -e
              cd ../boost-root
              echo "B2_FLAGS: $B2_FLAGS"
              ./b2 -j2 \
                --debug-configuration \
                cxxstd=$CXXSTD \
                toolset=$TOOLSET \
                variant=$VARIANT \
                $B2_TARGETS
          displayName: Build & Run tests
  
    - job: 'macOS'
      pool:
        vmImage: 'macOS-10.13'
      strategy:
        matrix:
          Xcode 10.1 C++17 Release:
            TOOLSET: clang
            VARIANT: release
            CXXSTD: 17
            XCODE_APP: /Applications/Xcode_10.1.app
          Xcode 9.4.1 C++11 Release:
            TOOLSET: clang
            VARIANT: release
            CXXSTD: 11
            XCODE_APP: /Applications/Xcode_9.4.1.app
      steps:
        - bash: |
            brew install openssl
          displayName: Get OpenSSL
        - bash: |
            set -e
            sudo xcode-select -switch ${XCODE_APP}
            which clang++
            export BUILD_DIR=$(pwd)
            cd ..
            $BUILD_DIR/tools/get-boost.sh $GIT_BRANCH $BUILD_DIR
            cd boost-root
            ./bootstrap.sh || cat bootstrap.log
            cp libs/beast/tools/user-config.jam ~/user-config.jam
          displayName: Get Boost
        - bash: |
              set -e
              export OPENSSL_ROOT=$(brew --prefix openssl)
              cd ../boost-root
              ./b2 -j2 \
                --debug-configuration \
                define=BOOST_COROUTINES_NO_DEPRECATION_WARNING=1 \
                cxxstd=$CXXSTD \
                libs/beast/test//run-fat-tests \
                libs/beast/example \
                toolset=$TOOLSET \
                variant=$VARIANT
          displayName: Build & Run tests
  
    - job: 'Windows'
      strategy:
        matrix:
          # MSVC14.2: # FIXME(djarek): windows-2019 doesn't have vcpkg
          MSVC14.2 C++17 x64:
            VM_IMAGE: 'windows-2019'
            TOOLSET: msvc-14.2
            CXXSTD: 17
            ADDRMODEL: 64
          MSVC14.1 C++17 x64:
            VM_IMAGE: 'vs2017-win2016'
            TOOLSET: msvc-14.1
            CXXSTD: 17
            ADDRMODEL: 64
          MSVC14.0 C++11 x64:
            VM_IMAGE: 'vs2017-win2016'
            TOOLSET: msvc-14.0
            CXXSTD: 11
            ADDRMODEL: 64
      pool:
        vmImage: $(VM_IMAGE)
      steps:
        - bash: |
            vcpkg install openssl --triplet "x$ADDRMODEL""-windows"
          displayName: Get OpenSSL
  
        - bash: |
            set -e
            export BUILD_DIR=$(pwd)
            cd ..
            $BUILD_DIR/tools/get-boost.sh $GIT_BRANCH $BUILD_DIR
            cd boost-root
            ./bootstrap.sh
            cp libs/beast/tools/user-config.jam ~/user-config.jam
          displayName: Get Boost
  
        - bash: |
            set -e
            echo "VCPKG_ROOT: $VCPKG_INSTALLATION_ROOT"
            export OPENSSL_ROOT="$VCPKG_INSTALLATION_ROOT""/installed/x$ADDRMODEL""-windows"
            cd ../boost-root
            ./b2 -j2 \
              --debug-configuration \
              variant=debug \
              cxxstd=$CXXSTD \
              address-model=$ADDRMODEL \
              toolset=$TOOLSET \
              $B2_FLAGS \
              libs/beast/example
            ./b2 -j2 \
              --debug-configuration \
              variant=debug,release \
              cxxstd=$CXXSTD \
              address-model=$ADDRMODEL \
              toolset=$TOOLSET \
              $B2_FLAGS \
              --verbose-test \
              libs/beast/test//run-fat-tests
          displayName: Build & Run tests