containers-bsi/Makefile
Valentin Rothberg 07b19327a1 add simple integration tests
Add simple integration tests and integrate them into the CI.
More complex tests will be added later.

Fixes: #15
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-11 16:16:58 +02:00

21 lines
505 B
Makefile

SRC := ./BuildSourceImage.sh
CTR_IMAGE := localhost/containers/buildsourceimage
CTR_ENGINE ?= podman
all: validate
.PHONY: validate
validate: $(SRC)
shellcheck $(SRC)
.PHONY: build-container
build-container: Dockerfile
@echo
@echo "Building BuildSourceImage Container"
$(CTR_ENGINE) build --quiet --file Dockerfile --tag $(CTR_IMAGE) .
.PHONY: test-integration
test-integration: build-container
@echo
@echo "Running integration tests"
CTR_IMAGE=$(CTR_IMAGE) CTR_ENGINE=$(CTR_ENGINE) bats test/