Loading src/monitoring/.gitlab-ci.yml +4 −2 Original line number Diff line number Diff line Loading @@ -74,12 +74,14 @@ test monitoring run: # apply unit test to the monitoring component test monitoring pytest: stage: test needs: - build monitoring before_script: - if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create -d bridge teraflowbridge; fi script: - docker run -d -p 7070:7070 --name monitoring-test --network=teraflowbridge --rm "$IMAGE_NAME:$IMAGE_TAG" - docker exec -it monitoring-test bash - pytest --junitxml=report.xml - docker exec monitoring-test bash - docker exec pytest --junitxml=report.xml artifacts: when: always reports: Loading Loading
src/monitoring/.gitlab-ci.yml +4 −2 Original line number Diff line number Diff line Loading @@ -74,12 +74,14 @@ test monitoring run: # apply unit test to the monitoring component test monitoring pytest: stage: test needs: - build monitoring before_script: - if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create -d bridge teraflowbridge; fi script: - docker run -d -p 7070:7070 --name monitoring-test --network=teraflowbridge --rm "$IMAGE_NAME:$IMAGE_TAG" - docker exec -it monitoring-test bash - pytest --junitxml=report.xml - docker exec monitoring-test bash - docker exec pytest --junitxml=report.xml artifacts: when: always reports: Loading