From ef0a00fe9d93ecc718c9bef5f03f9027c856b850 Mon Sep 17 00:00:00 2001
From: George Sedov <george.sedov@desy.de>
Date: Tue, 25 Jan 2022 14:04:48 +0100
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 34a4c6f99..2c083d3a1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,6 +17,25 @@ build-services-linux-debug:
   rules:
     - when: always
   artifacts:
-    when: on_failure
     paths:
-      - $CI_PROJECT_DIR/build/CMakeFiles/*.log
\ No newline at end of file
+      - $CI_PROJECT_DIR/build/
+
+test-services-linux-debug:
+  image:
+    name: $CI_REGISTRY_IMAGE/asapo-services-linux-build-env:latest
+    entrypoint: [""]
+  stage: build
+  script:
+    - cd $CI_PROJECT_DIR/tests/automatic/common_scripts
+    - bash start_services.sh
+    - cd $CI_PROJECT_DIR/build
+    - ctest --no-compress-output -T Test --output-on-failure
+  tags:
+    - kubernetes-executor
+  rules:
+    - when: always
+  dependencies:
+    - build-services-linux-debug
+  artifacts:
+    paths:
+      - $CI_PROJECT_DIR/build/
-- 
GitLab