diff --git a/tests/Makefile b/tests/Makefile index 3f7e33d..a4ff084 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,24 @@ .PHONY: check +WORKING_CONT := python-docker-tests-w +TESTS_IMAGE := python-docker-tests +BASE_IMAGE := registry.fedoraproject.org/fedora:29 + check: - ansible-playbook -i inventory-localhost -c local ./tests.yml + ansible-playbook -i inventory-localhost -v -c local ./tests.yml + +build: + podman run \ + --name $(WORKING_CONT) \ + $(BASE_IMAGE) \ + dnf install -y standard-test-roles make + podman commit $(WORKING_CONT) $(TESTS_IMAGE) + podman rm $(WORKING_CONT) + +check-in-container: + podman run \ + -v $(CURDIR):/src \ + -w /src \ + -v /var/run/docker.sock:/var/run/docker.sock \ + $(TESTS_IMAGE) \ + make check