Skip to content

Commit b84d8ad

Browse files
committed
Add Linux Docker test matrix
1 parent 81b677e commit b84d8ad

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ignore cmake builds
2+
cmake-build-*/
3+
4+
# ignore b2 builds
5+
bin.v2/
6+
*/bin.v2/
7+
.git/
8+
*/.git/

.dockers/fedora-32/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM fedora:32
2+
3+
RUN dnf update -y
4+
RUN dnf -y groupinstall "Development Tools"
5+
RUN dnf install -y cmake openssl-devel clang libcxx-devel libcxxabi-devel bzip2-devel which zlib-devel
6+
7+
WORKDIR /devel
8+
RUN git clone -b develop https://github.com/boostorg/boost.git
9+
COPY .dockers/fedora-32/user-config.jam /devel/boost/
10+
COPY .dockers/fedora-32/tests.sh /devel/boost/
11+
12+
WORKDIR /devel/boost
13+
RUN git submodule update --init --recursive
14+
COPY Jamfile /devel/boost/libs/beast/
15+
COPY doc /devel/boost/libs/beast/doc/
16+
COPY example /devel/boost/libs/beast/example/
17+
COPY meta /devel/boost/libs/beast/meta/
18+
COPY tools /devel/boost/libs/beast/tools/
19+
20+
#RUN cd libs/beast && git checkout develop && git pull origin develop
21+
RUN ./bootstrap.sh
22+
RUN ./b2 toolset=gcc variant=release cxxstd=latest headers
23+
RUN ./tests.sh

.dockers/fedora-32/tests.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
./b2 --user-config=./user-config.jam \
6+
toolset=clang,gcc \
7+
asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \
8+
variant=release \
9+
cxxstd=2a,17,14,11 \
10+
-j`grep processor /proc/cpuinfo | wc -l` \
11+
-q \
12+
libs/beast/test libs/beast/example

.dockers/fedora-32/user-config.jam

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import feature ;
2+
3+
feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ;
4+
feature.compose <asio.mode>nodep : <define>"BOOST_ASIO_NO_DEPRECATED" ;
5+
feature.compose <asio.mode>nots : <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
6+
feature.compose <asio.mode>ts : <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
7+
feature.compose <asio.mode>nodep-nots : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_NO_TS_EXECUTORS" ;
8+
feature.compose <asio.mode>nodep-ts : <define>"BOOST_ASIO_NO_DEPRECATED" <define>"BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ;
9+
10+
using clang : : clang++ : <stdlib>"libc++" <cxxflags>"-Wno-c99-extensions" ;
11+
using gcc : : g++ : <cxxflags>"-Wno-c99-extensions" ;

0 commit comments

Comments
 (0)