From da43078ebabb746d1f5cd31d2b9eb1b891e0496c Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 6 Nov 2021 12:59:16 -0400 Subject: [PATCH] tests: Add Ubuntu 21.10 into the test matrix --- .github/workflows/tests.yaml | 3 +++ docker-compose.yml | 8 ++++++++ test/docker/ubuntu2110 | 27 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 test/docker/ubuntu2110 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index be63bcb19..ff9a58944 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -36,6 +36,9 @@ jobs: - name: "Ubuntu 21.04" runner: ubuntu-latest dockerfile: ubuntu2104 + - name: "Ubuntu 21.10" + runner: ubuntu-latest + dockerfile: ubuntu2110 - name: "OpenSUSE 15.0" runner: ubuntu-latest dockerfile: opensuse1500 diff --git a/docker-compose.yml b/docker-compose.yml index dcd055eeb..c4b3fb99c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -80,6 +80,14 @@ services: security_opt: - label=type:container_runtime_t tty: true + test-ubuntu2110: + build: + context: . + dockerfile: test/docker/ubuntu2110 + network_mode: "host" + security_opt: + - label=type:container_runtime_t + tty: true test-debianstable: build: context: . diff --git a/test/docker/ubuntu2110 b/test/docker/ubuntu2110 new file mode 100644 index 000000000..b6143fdd7 --- /dev/null +++ b/test/docker/ubuntu2110 @@ -0,0 +1,27 @@ +FROM ubuntu:21.10 + +RUN apt-get update +RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev faketime locales python3 + +# Setup language environment +RUN locale-gen en_US.UTF-8 +ENV LC_ALL en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US.UTF-8 + +# Setup taskwarrior +ADD . /root/code/ +WORKDIR /root/code/ +RUN git clean -dfx +RUN git submodule init +RUN git submodule update +RUN cmake -DCMAKE_BUILD_TYPE=debug . +RUN make -j8 +RUN make install +RUN task --version + +# Setup tests +WORKDIR /root/code/test/ +RUN make -j8 + +CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]