From c0a2af5b044c5828deffb58a0540df551c501fff Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Mon, 28 Jun 2021 11:56:29 +0200
Subject: [PATCH] WIP: pipeline - add test for pages

---
 .gitlab-ci.yml | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b80999..024cb1f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -120,22 +120,25 @@ trigger_inttest:
 
 # Build the sphinx documentation and make it ready for deployment by Gitlab Pages
 # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
-pages_prepare: &pages_prepare
+.pages_prepare: &pages_prepare
   tags: [ cached-dind ]
   stage: deploy
-  only:
-    refs:
-      - /^release-.*$/i
+  needs: []
   script:
     - mkdir -p build
     - cd build
     - cmake ..
     - cmake --build . --target doc-sphinx
     - cp -r doc/sphinx_out ../public
-  artifacts:
-    paths:
-      - public
+
+test_pages:
+  <<: *pages_prepare
+
 pages:
   <<: *pages_prepare
   only:
-    - schedule
+    refs:
+      - /^release-.*$/i
+  artifacts:
+    paths:
+      - public
-- 
GitLab