blob: e10a759672cffa5f8174271f612caf668bd13bcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
docker build \
--build-arg BASE_IMAGE=${IMAGE_NAME} \
--file - \
--tag ${IMAGE_NAME}-test \
. <<'EOF'
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
WORKDIR /opt/app
USER root
RUN pip3 install --no-cache-dir pytest-cov freezegun
USER app
ENV POSTGRES_HOST=x \
POSTGRES_USER=x \
POSTGRES_PASSWORD=x \
ESEARCH_HOST=x
CMD ["pytest", "szurubooru/", \
"--cov-report=term-missing", "--cov=szurubooru", "--tb=short"]
EOF
docker run --rm -t ${IMAGE_NAME}-test
|
© 2015 - 2026 Jakob L. Kreuze