Skip to content
Snippets Groups Projects
Commit 794e9500 authored by Sam Kagan's avatar Sam Kagan
Browse files

Drafted fix for reports not being found

parent cdd2e461
No related branches found
No related tags found
2 merge requests!1706merge 2.8.4 to main,!1649Show unit test reports in Gitlab
......@@ -7,6 +7,7 @@
- echo building package in $PACKAGE_PATH
- export CAPO_PATH=$PWD
- export CAPO_PROFILE=docker
- export PACKAGE_NAME=$(basename $PACKAGE_PATH)
- WD=$PWD
- cd ${PACKAGE_PATH}
......@@ -22,6 +23,7 @@
# Install the packages for testing
- poetry install --with test
- $(poetry env info -p)/bin/pytest --junitxml=tests.xml .
- mv ./tests.xml ${CI_PROJECT_DIR}/tests.${PACKAGE_NAME}.${CI_COMMIT_SHORT_SHA}.xml
# once tests pass, look to see if there is a conflicting version in pypi registry
- PACKAGE_NAME=$(basename $PWD)
......@@ -49,10 +51,10 @@
- cd $WD
artifacts:
paths:
- tests.xml
- ${CI_PROJECT_DIR}/tests.${PACKAGE_NAME}.${CI_COMMIT_SHORT_SHA}.xml
reports:
junit:
- tests.xml
- ${CI_PROJECT_DIR}/tests.${PACKAGE_NAME}.${CI_COMMIT_SHORT_SHA}.xml
rules:
- changes:
- ${PACKAGE_PATH}/**/*
......@@ -9,13 +9,14 @@
- poetry install --with test
- $(poetry env info -p)/bin/pytest --junitxml=tests.xml --cov=${SERVICE_NAME} --cov-report=
- mv ./.coverage ${CI_PROJECT_DIR}/.coverage.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}
- mv ./tests.xml ${CI_PROJECT_DIR}/tests.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}.xml
artifacts:
paths:
- .coverage.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}
- tests.xml
- ${CI_PROJECT_DIR}/tests.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}.xml
reports:
junit:
- tests.xml
- ${CI_PROJECT_DIR}/tests.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}.xml
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /(^[0-9](\.[0-9])*)-DEVELOPMENT/'
variables:
......
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