From 5a5702c0b66fcad8e72736fb59e11147c0b3addf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20B?= <stephane.bouvry@unicaen.fr> Date: Wed, 16 Oct 2024 09:35:07 +0200 Subject: [PATCH] Rapport de test Gitlab --- .gitlab-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 11ddada..e179d2b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,3 @@ -image: php:8.2 - stages: - test - publish @@ -16,6 +14,7 @@ cache: test: stage: test + image: php:8.2 before_script: # Met à jour Composer et installe les dépendances - apt-get update -yqq @@ -24,7 +23,13 @@ test: - php composer.phar install --prefer-dist --no-progress --no-interaction script: # Exécute les tests PHPUnit - - ./vendor/bin/phpunit --colors=always + - mkdir -p tests/_output + - ./vendor/bin/phpunit --colors=always --log-junit tests/_output/junit.xml + artifacts: + when: always + expire_in: 1 week + reports: + junit: tests/_output/junit.xml # Publication de la librairie update-satis: -- GitLab