Skip to content
Snippets Groups Projects
Verified Commit cfc863a7 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Makefile: Introduce makefile to ease testing

Refs. swh/infra/sysadm-environment#4794
parent eec576d4
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
IMAGE="helmunittest/helm-unittest:3.11.1-0.3.0"
# requires --user in the docker call to allow writing in the user's home
UID=1000
# This allows to introspect the swh/tests/__snapshot__/<generated-chart>.yaml
# output of the chart execution in the test context. It's in a dedicated
# target as this generates temporary files. This is to be used exceptionally
# to ease troubleshooting
ACTIVATE_SNAPSHOT=--update-snapshot
test:
docker run -ti --user $(UID) --rm -v $(PWD):/apps \
$(IMAGE) swh
test-with-snapshot:
docker run -ti --user $(UID) --rm -v $(PWD):/apps \
$(IMAGE) $(ACTIVATE_SNAPSHOT) swh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment