aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-01 17:40:33 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-06 16:24:23 +0200
commit1907a90783165d13a53f600a82cd00dbb75a10ed (patch)
tree042b999cb414d1aec9043f4b72f00e3ede84db7b /Dockerfile
parentadd a cimple-valgrind executable (diff)
downloadcimple-1907a90783165d13a53f600a82cd00dbb75a10ed.tar.gz
cimple-1907a90783165d13a53f600a82cd00dbb75a10ed.zip
add a couple of the most basic tests using Pytest
I'm super-unsure about this; I don't really like all the magic, but we'll see, I guess?
Diffstat (limited to '')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 47312bf..e0eb0e6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@ ARG install_dir="/app/install"
FROM base AS builder
-RUN build_deps='bash bsd-compat-headers build-base clang cmake libgit2-dev python3 sqlite-dev' && \
+RUN build_deps='bash bsd-compat-headers build-base clang cmake libgit2-dev py3-pytest sqlite-dev' && \
apk add -q --no-cache $build_deps
ARG C_COMPILER=clang
@@ -21,7 +21,8 @@ RUN cd -- "$src_dir" && \
"C_COMPILER=$C_COMPILER" \
"BUILD_TYPE=$BUILD_TYPE" \
"DEFAULT_HOST=$DEFAULT_HOST" \
- "INSTALL_PREFIX=$install_dir"
+ "INSTALL_PREFIX=$install_dir" && \
+ make test BUILD_TYPE="$BUILD_TYPE"
FROM base