mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Add Alpine Linux test images
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
c80442c878
commit
a38ecf6380
4 changed files with 88 additions and 0 deletions
6
.github/workflows/tests.yaml
vendored
6
.github/workflows/tests.yaml
vendored
|
@ -6,6 +6,12 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: "Alpine Edge"
|
||||
runner: ubuntu-latest
|
||||
container: alpine-edge
|
||||
- name: "Alpine Latest"
|
||||
runner: ubuntu-latest
|
||||
container: alpine-latest
|
||||
- name: "Archlinux Base"
|
||||
runner: ubuntu-latest
|
||||
container: archlinux
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
version: '3'
|
||||
services:
|
||||
test-alpine-edge:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: test/docker/alpine-edge
|
||||
network_mode: "host"
|
||||
security_opt:
|
||||
- label=type:container_runtime_t
|
||||
tty: true
|
||||
test-alpine-latest:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: test/docker/alpine-latest
|
||||
network_mode: "host"
|
||||
security_opt:
|
||||
- label=type:container_runtime_t
|
||||
tty: true
|
||||
test-fedora31:
|
||||
build:
|
||||
context: .
|
||||
|
|
33
test/docker/alpine-edge
Normal file
33
test/docker/alpine-edge
Normal file
|
@ -0,0 +1,33 @@
|
|||
FROM alpine:edge
|
||||
|
||||
RUN apk add --no-cache \
|
||||
asciidoctor \
|
||||
bash \
|
||||
cmake \
|
||||
g++ \
|
||||
git \
|
||||
make \
|
||||
mandoc \
|
||||
musl-dev \
|
||||
python3 \
|
||||
py3-dateutil
|
||||
|
||||
# Setup environment
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US.UTF-8
|
||||
ENV MAN_DISABLE_SECCOMP 1
|
||||
|
||||
# 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 ; FAILED=$? ; echo echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version; exit $FAILED"]
|
33
test/docker/alpine-latest
Normal file
33
test/docker/alpine-latest
Normal file
|
@ -0,0 +1,33 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache \
|
||||
asciidoctor \
|
||||
bash \
|
||||
cmake \
|
||||
g++ \
|
||||
git \
|
||||
make \
|
||||
man-db \
|
||||
musl-dev \
|
||||
python3 \
|
||||
py3-dateutil
|
||||
|
||||
# Setup environment
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US.UTF-8
|
||||
ENV MAN_DISABLE_SECCOMP 1
|
||||
|
||||
# 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 ; FAILED=$? ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version; exit $FAILED"]
|
Loading…
Add table
Add a link
Reference in a new issue