Loading src/monitoring/.gitlab-ci.yml +3 −2 Original line number Diff line number Diff line Loading @@ -74,7 +74,8 @@ test monitoring pytest: needs: - build monitoring script: - docker build -t "$IMAGE_NAME_TEST:$IMAGE_TAG" -f ./src/$IMAGE_NAME/tests/Dockerfile ./src/ > pytest_report.xml - docker build -t "$IMAGE_NAME_TEST:$IMAGE_TAG" -f ./src/$IMAGE_NAME/tests/Dockerfile ./src/ - docker run -v "$PWD/src/monitoring/tests:/opt/results" monitoring-test:latest rules: - changes: - src/$IMAGE_NAME/*.{py,in,yml} Loading @@ -85,7 +86,7 @@ test monitoring pytest: artifacts: when: always reports: junit: pytest_report.xml junit: src/monitoring/test/pytest_report.xml # Deployment of the monitoring service in Kubernetes Cluster #deploy monitoring development: Loading src/monitoring/tests/Dockerfile +2 −1 Original line number Diff line number Diff line Loading @@ -27,4 +27,5 @@ COPY common/logger.py . ENV PORT=7070 EXPOSE 7070 RUN pytest --junitxml=report.xml #RUN pytest --junitxml=report.xml ENTRYPOINT ["pytest", "--junitxml=/opt/results/report.xml"] Loading
src/monitoring/.gitlab-ci.yml +3 −2 Original line number Diff line number Diff line Loading @@ -74,7 +74,8 @@ test monitoring pytest: needs: - build monitoring script: - docker build -t "$IMAGE_NAME_TEST:$IMAGE_TAG" -f ./src/$IMAGE_NAME/tests/Dockerfile ./src/ > pytest_report.xml - docker build -t "$IMAGE_NAME_TEST:$IMAGE_TAG" -f ./src/$IMAGE_NAME/tests/Dockerfile ./src/ - docker run -v "$PWD/src/monitoring/tests:/opt/results" monitoring-test:latest rules: - changes: - src/$IMAGE_NAME/*.{py,in,yml} Loading @@ -85,7 +86,7 @@ test monitoring pytest: artifacts: when: always reports: junit: pytest_report.xml junit: src/monitoring/test/pytest_report.xml # Deployment of the monitoring service in Kubernetes Cluster #deploy monitoring development: Loading
src/monitoring/tests/Dockerfile +2 −1 Original line number Diff line number Diff line Loading @@ -27,4 +27,5 @@ COPY common/logger.py . ENV PORT=7070 EXPOSE 7070 RUN pytest --junitxml=report.xml #RUN pytest --junitxml=report.xml ENTRYPOINT ["pytest", "--junitxml=/opt/results/report.xml"]