diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..7625477d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +# ignore cmake builds +cmake-build-*/ + +# ignore b2 builds +bin.v2/ +*/bin.v2/ +.git/ +*/.git/ \ No newline at end of file diff --git a/.dockers/fedora-32/Dockerfile b/.dockers/fedora-32/Dockerfile new file mode 100644 index 00000000..6696e45a --- /dev/null +++ b/.dockers/fedora-32/Dockerfile @@ -0,0 +1,23 @@ +FROM fedora:32 + +RUN dnf update -y +RUN dnf -y groupinstall "Development Tools" +RUN dnf install -y cmake openssl-devel clang libcxx-devel libcxxabi-devel bzip2-devel which zlib-devel + +WORKDIR /devel +RUN git clone -b develop https://github.com/boostorg/boost.git +COPY .dockers/fedora-32/user-config.jam /devel/boost/ +COPY .dockers/fedora-32/tests.sh /devel/boost/ + +WORKDIR /devel/boost +RUN git submodule update --init --recursive +COPY Jamfile /devel/boost/libs/beast/ +COPY doc /devel/boost/libs/beast/doc/ +COPY example /devel/boost/libs/beast/example/ +COPY meta /devel/boost/libs/beast/meta/ +COPY tools /devel/boost/libs/beast/tools/ + +#RUN cd libs/beast && git checkout develop && git pull origin develop +RUN ./bootstrap.sh +RUN ./b2 toolset=gcc variant=release cxxstd=latest headers +RUN ./tests.sh diff --git a/.dockers/fedora-32/tests.sh b/.dockers/fedora-32/tests.sh new file mode 100755 index 00000000..ff842c5c --- /dev/null +++ b/.dockers/fedora-32/tests.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e + +./b2 --user-config=./user-config.jam \ + toolset=clang,gcc \ + asio.mode=dflt,nodep,nots,ts,nodep-nots,nodep-ts \ + variant=release \ + cxxstd=2a,17,14,11 \ + -j`grep processor /proc/cpuinfo | wc -l` \ + -q \ + libs/beast/test libs/beast/example diff --git a/.dockers/fedora-32/user-config.jam b/.dockers/fedora-32/user-config.jam new file mode 100644 index 00000000..544e0eb1 --- /dev/null +++ b/.dockers/fedora-32/user-config.jam @@ -0,0 +1,11 @@ +import feature ; + +feature.feature asio.mode : dflt nodep nots ts nodep-nots nodep-ts : propagated composite ; +feature.compose nodep : "BOOST_ASIO_NO_DEPRECATED" ; +feature.compose nots : "BOOST_ASIO_NO_TS_EXECUTORS" ; +feature.compose ts : "BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ; +feature.compose nodep-nots : "BOOST_ASIO_NO_DEPRECATED" "BOOST_ASIO_NO_TS_EXECUTORS" ; +feature.compose nodep-ts : "BOOST_ASIO_NO_DEPRECATED" "BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT" ; + +using clang : : clang++ : "libc++" "-Wno-c99-extensions" ; +using gcc : : g++ : "-Wno-c99-extensions" ;