Ajout des rapports de tests unitaires dans Gitlab-CI

This commit is contained in:
FyloZ 2021-02-14 01:37:12 -05:00
parent c32b36e753
commit 88e5069119
1 changed files with 5 additions and 2 deletions

View File

@ -29,11 +29,14 @@ test:
variables:
TEST_CONTAINER_NAME: "cre_backend_gradle_tests-$CI_COMMIT_REF_NAME"
script:
- docker run --name $TEST_CONTAINER_NAME --rm $CI_REGISTRY_IMAGE_GRADLE gradle test
- docker run --name $TEST_CONTAINER_NAME $CI_REGISTRY_IMAGE_GRADLE gradle test
- mkdir test-results && docker cp $TEST_CONTAINER_NAME:/usr/src/cre/build/test-results/test/ test-results
after_script:
- docker rm $TEST_CONTAINER_NAME
artifacts:
when: always
reports:
junit: build/test-results/test/TEST-*.xml
junit: test-results/test/TEST-*.xml
package:
stage: package