Copie les résultats des tests dans after_script pour les avoir en cas de tests qui fail
This commit is contained in:
parent
87dbd3bc9d
commit
1c6d33cc61
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue