Skip to content
Snippets Groups Projects
Commit 3a65f701 authored by bikerdanny's avatar bikerdanny
Browse files

Added cleanup stage and added test network to linkchecker

parent 97718e87
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ variables:
stages:
- build
- test
- cleanup
build_base:
stage: build
......@@ -36,6 +37,11 @@ test_linkchecker:
script:
- docker network create ${TEST_NETWORK}
- docker run -d --rm --name ${TEST_CONTAINER_NAME} --network ${TEST_NETWORK} ${BASE_IMAGE} mkdocs serve --dev-addr 0.0.0.0:8000
- docker run --rm ${LINKCHECKER_IMAGE} --check-extern --ignore-url=http://0.0.0.0:8000 http://webpage:8000
- docker run --rm --network ${TEST_NETWORK} ${LINKCHECKER_IMAGE} --check-extern --ignore-url=http://0.0.0.0:8000 http://webpage:8000
cleanup_test:
stage: cleanup
script:
- docker stop ${TEST_CONTAINER_NAME}
- docker network rm ${TEST_NETWORK}
when: always
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