Ajout des rapports de tests unitaires dans Gitlab-CI
This commit is contained in:
parent
c32b36e753
commit
88e5069119
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue