Feat: Execute tests via docker run rather than at the end of the test build process
This commit is contained in:
parent
d6b2fb4369
commit
98c8ec138a
@ -19,7 +19,8 @@ build:
|
|||||||
|
|
||||||
test: build rm-test-image
|
test: build rm-test-image
|
||||||
@test -f Dockerfile.test && \
|
@test -f Dockerfile.test && \
|
||||||
docker build --rm -t $(IMAGE):$(TAG)-test --from=$(IMAGE):$(TAG) -f Dockerfile.test . || \
|
{ docker build --rm -t $(IMAGE):$(TAG)-test --from=$(IMAGE):$(TAG) -f Dockerfile.test . && \
|
||||||
|
docker run --rm --env-host -t $(IMAGE):$(TAG)-test; } || \
|
||||||
echo "No Dockerfile.test found, skipping test"
|
echo "No Dockerfile.test found, skipping test"
|
||||||
|
|
||||||
scan: build
|
scan: build
|
||||||
|
Loading…
Reference in New Issue
Block a user