Copie les résultats des tests dans after_script pour les avoir en cas de tests qui fail

This commit is contained in:
FyloZ 2021-02-14 01:52:09 -05:00
parent 87dbd3bc9d
commit 1c6d33cc61
1 changed files with 1 additions and 1 deletions

View File

@ -30,8 +30,8 @@ test:
TEST_CONTAINER_NAME: "cre_backend_gradle_tests-$CI_COMMIT_REF_NAME"
script:
- 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:
- mkdir test-results && docker cp $TEST_CONTAINER_NAME:/usr/src/cre/build/test-results/test/ test-results
- docker rm $TEST_CONTAINER_NAME
artifacts:
when: always