Skip to content
Snippets Groups Projects
Commit e5db458d authored by Stéphane Schoorens's avatar Stéphane Schoorens
Browse files

fix gitlab ci refs #29848

parent a40edfd6
No related branches found
No related tags found
No related merge requests found
......@@ -3,15 +3,33 @@ DOCKER_IMG ?= ${DOCKER_REGISTRY}/web/pod-client
build:
docker build -t ${DOCKER_IMG} .
lint:
docker run -e TOXENV=lint -v ${CURDIR}:/src -w /src ${DOCKER_IMG}:latest tox
deadcode:
docker run -e TOXENV=deadcode -v ${CURDIR}:/src -w /src ${DOCKER_IMG}:latest tox
test:
docker run -e TOXENV=test -v ${CURDIR}:/src -w /src ${DOCKER_IMG}:latest tox -- ${PYTEST_ARGS}
shell:
docker run -it -v ${CURDIR}:/src -w /src --rm ${DOCKER_IMG} /bin/bash
pull_docker_img:
docker pull ${DOCKER_IMG}
publish_docker_img: build
docker push ${DOCKER_IMG}
lint:
ifndef CI
docker run -e CI='1' -v ${CURDIR}:/src -w /src --rm ${DOCKER_IMG} make lint
else
TOXENV=lint tox -- ${PYTEST_ARGS}
endif
deadcode:
ifndef CI
docker run -e CI='1' -v ${CURDIR}:/src -w /src --rm ${DOCKER_IMG} make deadcode
else
TOXENV=deadcode tox -- ${PYTEST_ARGS}
endif
test:
ifndef CI
docker run -e CI='1' -v ${CURDIR}:/src -w /src --rm ${DOCKER_IMG} make test
else
TOXENV=test tox -- ${PYTEST_ARGS}
endif
\ No newline at end of file
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