From c39456bebd90e0360ee8249cb383bea152d64900 Mon Sep 17 00:00:00 2001 From: Benjamin GUILLON <benjamin.guillon@cc.in2p3.fr> Date: Wed, 1 Apr 2020 22:54:06 +0200 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc211f29..1b88a418 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - build + - test default: before_script: @@ -19,3 +20,9 @@ php-image-build: script: - docker build --pull -t "$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG" -f ./docker/php-fpm/Dockerfile . - docker push "$CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG" + +test: + stage: test + image: $CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG + script: + - vendor/bin/simple-phpunit --configuration phpunit.xml.dist -- GitLab