diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-01 17:40:33 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-06 16:24:23 +0200 |
commit | 1907a90783165d13a53f600a82cd00dbb75a10ed (patch) | |
tree | 042b999cb414d1aec9043f4b72f00e3ede84db7b /Dockerfile | |
parent | add a cimple-valgrind executable (diff) | |
download | cimple-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 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |