mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Add Fedora 33 test image
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
29e213eefc
commit
4c8ccd99c3
3 changed files with 44 additions and 0 deletions
3
.github/workflows/tests.yaml
vendored
3
.github/workflows/tests.yaml
vendored
|
@ -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
|
||||||
|
|
|
@ -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
33
test/docker/fedora33
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue