mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2024-11-24 07:00:09 +01:00
Add Dockerfile.test for running pumptool's tests in a container
This commit is contained in:
parent
6c944ab9a0
commit
d261a905b3
9
Dockerfile.test
Normal file
9
Dockerfile.test
Normal file
@ -0,0 +1,9 @@
|
||||
FROM pumptools:build
|
||||
|
||||
LABEL description="Test environment for pumptools"
|
||||
|
||||
WORKDIR /pumptools
|
||||
|
||||
COPY scripts/run-tests.sh scripts/run-tests.sh
|
||||
|
||||
RUN make test
|
4
Makefile
4
Makefile
@ -23,6 +23,7 @@ usage:
|
||||
$(V)echo " clean: Clean up all build output"
|
||||
$(V)echo " test: Run pumptools's unit tests"
|
||||
$(V)echo " build-docker: Build the pumptools project in a docker container"
|
||||
$(V)echo " test-docker: Run pumptools's unit tests in a docker container"
|
||||
$(V)echo " git-version: Generate a text file with the current git revision"
|
||||
$(V)echo " libc-version: Generate a text file with the libc version available"
|
||||
$(V)echo " clang-format: Apply code style defined in .clang-format style to all code in src/"
|
||||
@ -51,6 +52,9 @@ build-docker:
|
||||
$(V)docker rm -f pumptools-build
|
||||
$(V)echo "Build output of docker build can be found in build/docker subfolder."
|
||||
|
||||
test-docker:
|
||||
$(V)docker build -f Dockerfile.test -t pumptools:test .
|
||||
|
||||
# Generate a version file to identify the build
|
||||
git-version:
|
||||
$(V)mkdir -p $(BUILDDIR)
|
||||
|
Loading…
Reference in New Issue
Block a user