-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
26 lines (20 loc) · 635 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: test-in-container build-generator push-generator build
TEST_IMAGE=cwt-tests
GENERATOR_IMAGE=quay.io/rhscl/cwt-generator
UNAME=$(shell uname)
ifeq ($(UNAME),Darwin)
PODMAN := /opt/podman/bin/podman
else
PODMAN := /usr/bin/podman
endif
.PHONY: tests
tests:
cd tests && PYTHONPATH=$(CURDIR) python3 -m pytest --color=yes --verbose --showlocals .
build:
$(PODMAN) build --tag $(TEST_IMAGE) -f Dockerfile.tests .
test-in-container:
$(PODMAN) run --rm -it $(TEST_IMAGE)
build-generator:
$(PODMAN) build --tag ${GENERATOR_IMAGE} -f Dockerfile.generator .
push-generator: build-generator
$(PODMAN) push ${GENERATOR_IMAGE}