mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
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:
parent
05ccf7b737
commit
bcc78a941f
17 changed files with 127 additions and 74 deletions
13
.github/workflows/tests.yaml
vendored
13
.github/workflows/tests.yaml
vendored
|
@ -27,15 +27,18 @@ jobs:
|
|||
- name: "Debian Testing"
|
||||
runner: ubuntu-latest
|
||||
container: debiantesting
|
||||
- name: "Fedora 36"
|
||||
runner: ubuntu-latest
|
||||
container: fedora36
|
||||
- name: "Fedora 37"
|
||||
runner: ubuntu-latest
|
||||
container: fedora37
|
||||
- name: "OpenSUSE 15.0"
|
||||
- name: "Fedora 38"
|
||||
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"
|
||||
runner: ubuntu-latest
|
||||
container: ubuntu1804
|
||||
|
|
|
@ -16,18 +16,10 @@ services:
|
|||
security_opt:
|
||||
- label=type:container_runtime_t
|
||||
tty: true
|
||||
test-fedora36:
|
||||
test-archlinux:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: test/docker/fedora36
|
||||
network_mode: "host"
|
||||
security_opt:
|
||||
- label=type:container_runtime_t
|
||||
tty: true
|
||||
test-fedora37:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: test/docker/fedora37
|
||||
dockerfile: test/docker/archlinux
|
||||
network_mode: "host"
|
||||
security_opt:
|
||||
- label=type:container_runtime_t
|
||||
|
@ -48,6 +40,54 @@ services:
|
|||
security_opt:
|
||||
- label=type:container_runtime_t
|
||||
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:
|
||||
build:
|
||||
context: .
|
||||
|
@ -72,35 +112,3 @@ services:
|
|||
security_opt:
|
||||
- label=type:container_runtime_t
|
||||
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
|
||||
|
|
|
@ -28,6 +28,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make -j2 test || true
|
||||
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"]
|
||||
|
|
|
@ -28,6 +28,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make -j2 test || true
|
||||
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"]
|
||||
|
|
|
@ -29,6 +29,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make -j2 test || true
|
||||
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"]
|
||||
|
|
|
@ -35,7 +35,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make test -j2 || true
|
||||
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"]
|
||||
|
|
|
@ -33,7 +33,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make test -j2 || true
|
||||
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"]
|
||||
|
|
|
@ -36,6 +36,6 @@ RUN make install
|
|||
|
||||
# Setup tests
|
||||
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"]
|
||||
|
|
|
@ -38,6 +38,6 @@ RUN make install
|
|||
|
||||
# Setup tests
|
||||
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"]
|
||||
|
|
|
@ -28,6 +28,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make -j2 test || true
|
||||
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"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM fedora:36
|
||||
FROM fedora:38
|
||||
|
||||
RUN dnf update -y
|
||||
RUN dnf install -y \
|
||||
|
@ -28,6 +28,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make -j2 test || true
|
||||
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"]
|
|
@ -33,6 +33,7 @@ RUN make -j2
|
|||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make -j2 test || true
|
||||
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"]
|
||||
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"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM opensuse/leap:15
|
||||
FROM opensuse/leap
|
||||
|
||||
RUN zypper install -y \
|
||||
cmake \
|
||||
|
@ -8,7 +8,7 @@ RUN zypper install -y \
|
|||
make \
|
||||
man \
|
||||
python3 \
|
||||
python3-dateutil \
|
||||
python3-python-dateutil \
|
||||
ruby
|
||||
|
||||
RUN gem install asciidoctor -v 2.0.15
|
||||
|
@ -33,6 +33,6 @@ RUN make install
|
|||
|
||||
# Setup tests
|
||||
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"]
|
36
test/docker/opensusetumbleweed
Normal file
36
test/docker/opensusetumbleweed
Normal 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"]
|
|
@ -36,6 +36,6 @@ RUN make install
|
|||
|
||||
# Setup tests
|
||||
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"]
|
||||
|
|
|
@ -37,6 +37,6 @@ RUN make install
|
|||
|
||||
# Setup tests
|
||||
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"]
|
||||
|
|
|
@ -37,6 +37,6 @@ RUN make install
|
|||
|
||||
# Setup tests
|
||||
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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue