Update test zoo

- Unify test setup in Docker files
- Add Fedora 38 Docker image
- Add OpenSUSE Leap Docker image
- Add OpenSUSE Tumbleweed Docker image
- Drop Fedora 36 Docker image
- Drop OpenSUSE 15 Docker image

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2023-10-31 14:25:32 +01:00
parent 05ccf7b737
commit bcc78a941f
17 changed files with 127 additions and 74 deletions

View file

@ -27,15 +27,18 @@ jobs:
- name: "Debian Testing" - name: "Debian Testing"
runner: ubuntu-latest runner: ubuntu-latest
container: debiantesting container: debiantesting
- name: "Fedora 36"
runner: ubuntu-latest
container: fedora36
- name: "Fedora 37" - name: "Fedora 37"
runner: ubuntu-latest runner: ubuntu-latest
container: fedora37 container: fedora37
- name: "OpenSUSE 15.0" - name: "Fedora 38"
runner: ubuntu-latest runner: ubuntu-latest
container: opensuse1500 container: fedora38
- name: "OpenSUSE Leap"
runner: ubuntu-latest
container: opensuseleap
- name: "OpenSUSE Tumbleweed"
runner: ubuntu-latest
container: opensusetumbleweed
- name: "Ubuntu 18.04" - name: "Ubuntu 18.04"
runner: ubuntu-latest runner: ubuntu-latest
container: ubuntu1804 container: ubuntu1804

View file

@ -16,18 +16,10 @@ services:
security_opt: security_opt:
- label=type:container_runtime_t - label=type:container_runtime_t
tty: true tty: true
test-fedora36: test-archlinux:
build: build:
context: . context: .
dockerfile: test/docker/fedora36 dockerfile: test/docker/archlinux
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-fedora37:
build:
context: .
dockerfile: test/docker/fedora37
network_mode: "host" network_mode: "host"
security_opt: security_opt:
- label=type:container_runtime_t - label=type:container_runtime_t
@ -48,6 +40,54 @@ services:
security_opt: security_opt:
- label=type:container_runtime_t - label=type:container_runtime_t
tty: true tty: true
test-debianstable:
build:
context: .
dockerfile: test/docker/debianstable
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-debiantesting:
build:
context: .
dockerfile: test/docker/debiantesting
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-fedora37:
build:
context: .
dockerfile: test/docker/fedora37
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-fedora38:
build:
context: .
dockerfile: test/docker/fedora38
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-opensuseleap:
build:
context: .
dockerfile: test/docker/opensuseleap
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-opensusetumbleweed:
build:
context: .
dockerfile: test/docker/opensusetumbleweed
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-ubuntu1804: test-ubuntu1804:
build: build:
context: . context: .
@ -72,35 +112,3 @@ services:
security_opt: security_opt:
- label=type:container_runtime_t - label=type:container_runtime_t
tty: true tty: true
test-debianstable:
build:
context: .
dockerfile: test/docker/debianstable
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-debiantesting:
build:
context: .
dockerfile: test/docker/debiantesting
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-opensuse1500:
build:
context: .
dockerfile: test/docker/opensuse1500
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-archlinux:
build:
context: .
dockerfile: test/docker/archlinux
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true

View file

@ -28,6 +28,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make -j2 test || true
WORKDIR /root/code/test/ WORKDIR /root/code/test/
CMD ["bash", "-c", "./problems --summary ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version; exit $FAILED"] RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -28,6 +28,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make -j2 test || true
WORKDIR /root/code/test/ WORKDIR /root/code/test/
CMD ["bash", "-c", "./problems --summary ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version; exit $FAILED"] RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -29,6 +29,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make -j2 test || true
WORKDIR /root/code/test/ WORKDIR /root/code/test/
CMD ["bash", "-c", "./problems --summary ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version; exit $FAILED"] RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -35,7 +35,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make test -j2 || true
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make -j2
CMD ["bash", "-c", "cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -33,7 +33,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make test -j2 || true
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make -j2
CMD ["bash", "-c", "cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -36,6 +36,6 @@ RUN make install
# Setup tests # Setup tests
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -38,6 +38,6 @@ RUN make install
# Setup tests # Setup tests
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -28,6 +28,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make -j2 test || true
WORKDIR /root/code/test/ WORKDIR /root/code/test/
CMD ["bash", "-c", "./problems --summary ; cat all.log | grep 'not ok' ; ./problems ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version"] RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -1,4 +1,4 @@
FROM fedora:36 FROM fedora:38
RUN dnf update -y RUN dnf update -y
RUN dnf install -y \ RUN dnf install -y \
@ -28,6 +28,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make -j2 test || true
WORKDIR /root/code/test/ WORKDIR /root/code/test/
CMD ["bash", "-c", "./problems --summary ; cat all.log | grep 'not ok' ; ./problems ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version"] RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -33,6 +33,7 @@ RUN make -j2
RUN make install RUN make install
# Setup tests # Setup tests
RUN make -j2 test || true WORKDIR /root/code/test/
WORKDIR /root/code/test RUN make -j2
CMD ["bash", "-c", "./problems --summary ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version; exit $FAILED"]
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -1,4 +1,4 @@
FROM opensuse/leap:15 FROM opensuse/leap
RUN zypper install -y \ RUN zypper install -y \
cmake \ cmake \
@ -8,7 +8,7 @@ RUN zypper install -y \
make \ make \
man \ man \
python3 \ python3 \
python3-dateutil \ python3-python-dateutil \
ruby ruby
RUN gem install asciidoctor -v 2.0.15 RUN gem install asciidoctor -v 2.0.15
@ -33,6 +33,6 @@ RUN make install
# Setup tests # Setup tests
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -0,0 +1,36 @@
FROM opensuse/tumbleweed
RUN zypper install -y \
cmake \
gcc-c++ \
git \
man \
python3 \
python3-python-dateutil \
ruby
RUN gem install asciidoctor -v 2.0.15
RUN update-alternatives --install /usr/bin/asciidoctor asciidoctor /usr/bin/asciidoctor.ruby3.2 10
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
ENV TZ=Europe/Berlin
# Setup environment
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# Setup timewarrior
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 -j2
RUN make install
# Setup tests
WORKDIR /root/code/test/
RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -36,6 +36,6 @@ RUN make install
# Setup tests # Setup tests
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -37,6 +37,6 @@ RUN make install
# Setup tests # Setup tests
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]

View file

@ -37,6 +37,6 @@ RUN make install
# Setup tests # Setup tests
WORKDIR /root/code/test/ WORKDIR /root/code/test/
RUN make RUN make -j2
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"] CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version ; exit $FAILED"]