Add Fedora 33 test image

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2021-02-28 22:08:45 +01:00
parent 29e213eefc
commit 4c8ccd99c3
3 changed files with 44 additions and 0 deletions

View file

@ -27,6 +27,9 @@ jobs:
- name: "Fedora 32" - name: "Fedora 32"
runner: ubuntu-latest runner: ubuntu-latest
container: fedora32 container: fedora32
- name: "Fedora 33"
runner: ubuntu-latest
container: fedora33
- name: "OpenSUSE 15.0" - name: "OpenSUSE 15.0"
runner: ubuntu-latest runner: ubuntu-latest
container: opensuse1500 container: opensuse1500

View file

@ -16,6 +16,14 @@ services:
security_opt: security_opt:
- label=type:container_runtime_t - label=type:container_runtime_t
tty: true tty: true
test-fedora33:
build:
context: .
dockerfile: test/docker/fedora33
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
test-centos7: test-centos7:
build: build:
context: . context: .

33
test/docker/fedora33 Normal file
View file

@ -0,0 +1,33 @@
FROM fedora:33
RUN dnf update -y
RUN dnf install -y \
asciidoctor \
cmake \
findutils \
gcc-c++ \
glibc-locale-source \
git \
make \
man \
python3 \
python3-dateutil
# Setup environment
RUN alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
# 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
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"]