From d29c6430ccafc06e4b0dc89b10ca8b34ed914f46 Mon Sep 17 00:00:00 2001
From: "Auke L. Klazema" <klazema@astron.nl>
Date: Fri, 15 Nov 2019 08:21:46 +0100
Subject: [PATCH] SW-836: Add test stage for RAServices

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4dc385e4759..ff7a4c43cf0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
 stages:
   - build
-#  - test
+  - test
 
 #
 # BUILD STAGE
@@ -24,7 +24,7 @@ build_RAServices:
 
   artifacts:
     paths:
-      - install/*.ztar
+      - install
 
 # build_CEP:
 #   stage: build
@@ -205,6 +205,20 @@ build_RAServices:
 #
 # TODO: We should play around with the variable expansion on Gitlab CI a bit more to find a usable way to refer to the cmake line from the build step
 
+test_RAServices:
+  stage: test
+  image: ci_raservices:latest
+  script:
+    - PACKAGE=RAServices
+    - VARIANT=gnucxx11_opt
+    - echo "Testing $PACKAGE..."
+    - cd build/$VARIANT
+    - ctest
+  dependencies:
+    - build_RAServices
+  artifacts:
+    paths:
+      - build/$VARIANT/LastTest.log
 
 # test_CEP:
 #   stage: test
-- 
GitLab