Skip to content

Commit 54032b3

Browse files
authored
Merge pull request #790 from boostorg/ci_adjust_2022
Move all GCC-5/6 testing to drone.
2 parents 5fa7797 + 6f71893 commit 54032b3

File tree

2 files changed

+13
-134
lines changed

2 files changed

+13
-134
lines changed

.drone.star

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ def main(ctx):
1717

1818
things_to_test = [ "special_fun", "distribution_tests", "mp", "misc", "interpolators", "quadrature", "autodiff", "long-running-tests", "float128_tests" ]
1919
sanitizer_test = [ "special_fun", "distribution_tests", "misc", "interpolators", "quadrature", "float128_tests" ]
20-
gnu_5_stds = [ "gnu++11", "gnu++14" ]
21-
gnu_6_stds = [ "gnu++11", "gnu++14" ]
22-
gnu_8_stds = [ "gnu++11", "gnu++14", "gnu++17" ]
23-
gnu_10_stds = [ "gnu++11", "gnu++14", "gnu++17", "gnu++20" ]
20+
gnu_5_stds = [ "gnu++11", "c++11", "gnu++14", "c++14" ]
21+
gnu_6_stds = [ "gnu++11", "c++11", "gnu++14", "c++14", "gnu++17", "c++17" ]
22+
clang_6_stds = [ "c++11", "c++14", "c++17" ]
23+
gnu_9_stds = [ "gnu++14", "c++14", "gnu++17", "c++17", "gnu++2a", "c++2a" ]
24+
clang_10_stds = [ "c++14", "c++17", "c++2a" ]
2425

2526
result = []
2627

@@ -38,12 +39,18 @@ def main(ctx):
3839
result.append(linux_cxx("Ubunti g++-5 " + cxx + " " + suite, "g++-5", packages="g++-5", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-5', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
3940
for cxx in gnu_6_stds:
4041
result.append(linux_cxx("Ubunti g++-6 " + cxx + " " + suite, "g++-6", packages="g++-6", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-6', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
41-
for cxx in gnu_8_stds:
42+
result.append(linux_cxx("Ubunti g++-7 " + cxx + " " + suite, "g++-7", packages="g++-7", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-7', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
4243
result.append(linux_cxx("Ubunti g++-8 " + cxx + " " + suite, "g++-8", packages="g++-8", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-8', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
4344
result.append(linux_cxx("Ubunti g++-9 " + cxx + " " + suite, "g++-9", packages="g++-9", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-9', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
45+
for cxx in clang_6_stds:
46+
result.append(linux_cxx("Ubunti clang++-6 " + cxx + " " + suite, "clang++-6.0", packages="clang-6.0", llvm_os="xenial", llvm_ver="6.0", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-6.0', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
47+
result.append(linux_cxx("Ubunti clang++-7 " + cxx + " " + suite, "clang++-7", packages="clang-7", llvm_os="xenial", llvm_ver="7", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-7', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
48+
result.append(linux_cxx("Ubunti clang++-8 " + cxx + " " + suite, "clang++-8", packages="clang-8", llvm_os="xenial", llvm_ver="8", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-8', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
4449
result.append(linux_cxx("Ubunti clang++-9 " + cxx + " " + suite, "clang++-9", packages="clang-9", llvm_os="xenial", llvm_ver="9", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-9', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
45-
for cxx in gnu_10_stds:
50+
for cxx in gnu_9_stds:
4651
result.append(linux_cxx("Ubunti g++-10 " + cxx + " " + suite, "g++-10", packages="g++-10", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-10', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
52+
result.append(linux_cxx("Ubunti g++-11 " + cxx + " " + suite, "g++-11", packages="g++-11", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-11', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
53+
for cxx in clang_10_stds:
4754
result.append(linux_cxx("Ubunti clang++-10 " + cxx + " " + suite, "clang++-10", packages="clang-10", llvm_os="xenial", llvm_ver="10", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-10', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
4855

4956
return result

.github/workflows/ci.yml

Lines changed: 0 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -77,70 +77,6 @@ jobs:
7777
- name: Test
7878
run: ../../../b2 -j2 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER
7979
working-directory: ../boost-root/libs/math/test
80-
ubuntu-focal:
81-
runs-on: ubuntu-20.04
82-
strategy:
83-
fail-fast: false
84-
matrix:
85-
compiler: [ g++-9, g++-11, clang++-10 ]
86-
standard: [ c++14, c++17, c++2a ]
87-
suite: [ float128_tests, special_fun, distribution_tests, misc, quadrature, mp, interpolators, autodiff, ../example//examples, ../tools ]
88-
steps:
89-
- uses: actions/checkout@v2
90-
with:
91-
fetch-depth: '0'
92-
- uses: mstachniuk/ci-skip@v1
93-
with:
94-
commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE];[standalone];[STANDALONE];[cygwin];[CYGWIN]'
95-
commit-filter-separator: ';'
96-
fail-fast: true
97-
- name: Set TOOLSET
98-
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV
99-
- name: Add repository
100-
continue-on-error: true
101-
id: addrepo
102-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
103-
- name: Retry Add Repo
104-
continue-on-error: true
105-
id: retry1
106-
if: steps.addrepo.outcome=='failure'
107-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
108-
- name: Retry Add Repo 2
109-
continue-on-error: true
110-
id: retry2
111-
if: steps.retry1.outcome=='failure'
112-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
113-
- name: Install packages
114-
run: sudo apt install g++-9 g++-11 clang-9 clang-10 libgmp-dev libmpfr-dev libfftw3-dev
115-
- name: Checkout main boost
116-
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
117-
- name: Update tools/boostdep
118-
run: git submodule update --init tools/boostdep
119-
working-directory: ../boost-root
120-
- name: Copy files
121-
run: cp -r $GITHUB_WORKSPACE/* libs/math
122-
working-directory: ../boost-root
123-
- name: Install deps
124-
run: python tools/boostdep/depinst/depinst.py math
125-
working-directory: ../boost-root
126-
- name: Bootstrap
127-
run: ./bootstrap.sh
128-
working-directory: ../boost-root
129-
- name: Generate headers
130-
run: ./b2 headers
131-
working-directory: ../boost-root
132-
- name: Generate user config
133-
run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} : <cxxflags>-std=${{ matrix.standard }} ;" > ~/user-config.jam'
134-
working-directory: ../boost-root
135-
- name: Config info install
136-
run: ../../../b2 config_info_travis_install toolset=$TOOLSET
137-
working-directory: ../boost-root/libs/config/test
138-
- name: Config info
139-
run: ./config_info_travis
140-
working-directory: ../boost-root/libs/config/test
141-
- name: Test
142-
run: ../../../b2 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER
143-
working-directory: ../boost-root/libs/math/test
14480
ubuntu-focal-no-eh:
14581
runs-on: ubuntu-20.04
14682
strategy:
@@ -204,70 +140,6 @@ jobs:
204140
- name: Test
205141
run: ../../../b2 toolset=$TOOLSET no_eh_tests exception-handling=off rtti=off define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER
206142
working-directory: ../boost-root/libs/math/test
207-
ubuntu-bionic:
208-
runs-on: ubuntu-18.04
209-
strategy:
210-
fail-fast: false
211-
matrix:
212-
compiler: [ g++-6, clang++-6.0, g++-7, g++-8, clang++-7, clang++-8 ]
213-
standard: [ c++14, c++17 ]
214-
suite: [ float128_tests, special_fun, distribution_tests, misc, quadrature, mp, interpolators, autodiff, ../example//examples, ../tools ]
215-
steps:
216-
- uses: actions/checkout@v2
217-
with:
218-
fetch-depth: '0'
219-
- uses: mstachniuk/ci-skip@v1
220-
with:
221-
commit-filter: '[skip ci];[ci skip];[CI SKIP];[SKIP CI];***CI SKIP***;***SKIP CI***;[windows];[Windows];[WINDOWS];[apple];[Apple];[APPLE];[standalone];[STANDALONE];[cygwin];[CYGWIN]'
222-
commit-filter-separator: ';'
223-
fail-fast: true
224-
- name: Set TOOLSET
225-
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV
226-
- name: Add repository
227-
continue-on-error: true
228-
id: addrepo
229-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
230-
- name: Retry Add Repo
231-
continue-on-error: true
232-
id: retry1
233-
if: steps.addrepo.outcome=='failure'
234-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
235-
- name: Retry Add Repo 2
236-
continue-on-error: true
237-
id: retry2
238-
if: steps.retry1.outcome=='failure'
239-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
240-
- name: Install packages
241-
run: sudo apt install g++-6 g++-7 g++-8 clang-6.0 clang-7 clang-8 libgmp-dev libmpfr-dev libfftw3-dev
242-
- name: Checkout main boost
243-
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
244-
- name: Update tools/boostdep
245-
run: git submodule update --init tools/boostdep
246-
working-directory: ../boost-root
247-
- name: Copy files
248-
run: cp -r $GITHUB_WORKSPACE/* libs/math
249-
working-directory: ../boost-root
250-
- name: Install deps
251-
run: python tools/boostdep/depinst/depinst.py math
252-
working-directory: ../boost-root
253-
- name: Bootstrap
254-
run: ./bootstrap.sh
255-
working-directory: ../boost-root
256-
- name: Generate headers
257-
run: ./b2 headers
258-
working-directory: ../boost-root
259-
- name: Generate user config
260-
run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} : <cxxflags>-std=${{ matrix.standard }} ;" > ~/user-config.jam'
261-
working-directory: ../boost-root
262-
- name: Config info install
263-
run: ../../../b2 config_info_travis_install toolset=$TOOLSET
264-
working-directory: ../boost-root/libs/config/test
265-
- name: Config info
266-
run: ./config_info_travis
267-
working-directory: ../boost-root/libs/config/test
268-
- name: Test
269-
run: ../../../b2 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER
270-
working-directory: ../boost-root/libs/math/test
271143
macos:
272144
runs-on: macos-latest
273145
strategy:

0 commit comments

Comments
 (0)