From aa4185cfff1b16fc88efd185c998876c19ef432b Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Fri, 14 Feb 2020 21:39:24 -0800 Subject: [PATCH] Add a 32-bit task to Cirrus CI config --- .cirrus.yml | 7 +++++++ ci/debian-9-32bit/Dockerfile | 40 ++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 ci/debian-9-32bit/Dockerfile diff --git a/.cirrus.yml b/.cirrus.yml index 9a1e214cb5..f501f0bc4d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -77,6 +77,13 @@ debian9_task: << : *RESOURCES_TEMPLATE << : *CI_TEMPLATE +debian9_32bit_task: + container: + # Debian 9 EOL: June 2022 + dockerfile: ci/debian-9-32bit/Dockerfile + << : *RESOURCES_TEMPLATE + << : *CI_TEMPLATE + ubuntu18_task: container: # Ubuntu 18.04 EOL: April 2023 diff --git a/ci/debian-9-32bit/Dockerfile b/ci/debian-9-32bit/Dockerfile new file mode 100644 index 0000000000..053c3ea760 --- /dev/null +++ b/ci/debian-9-32bit/Dockerfile @@ -0,0 +1,40 @@ +FROM i386/debian:9 + +RUN apt-get update && apt-get -y install \ + git \ + cmake \ + make \ + gcc \ + g++ \ + flex \ + bison \ + libpcap-dev \ + libssl-dev \ + python3 \ + python3-dev \ + python3-pip\ + swig \ + zlib1g-dev \ + libkrb5-dev \ + bsdmainutils \ + sqlite3 \ + curl \ + wget \ + xz-utils \ + clang-7 \ + libc++-7-dev \ + libc++abi-7-dev \ + && rm -rf /var/lib/apt/lists/* + +RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 100 +RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 100 + +# Many distros adhere to PEP 394's recommendation for `python` = `python2` so +# this is a simple workaround until we drop Python 2 support and explicitly +# use `python3` for all invocations (e.g. in shebangs). +RUN ln -sf /usr/bin/python3 /usr/local/bin/python +RUN ln -sf /usr/bin/pip3 /usr/local/bin/pip + +RUN pip install junit2html + +ENV CXXFLAGS=-stdlib=libc++