From 0b00c0212298105c0ca7366fa20d4851f93f4f35 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de>
Date: Wed, 25 Jan 2023 16:48:19 +0100
Subject: [PATCH] [ci] add job for doxygen docu build

---
 .gitlab-ci.yml         |  1 +
 .gitlab-ci/default.yml | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4e19f9aa8b..2bfb7ccdb2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -113,6 +113,7 @@ full-dune-master-gcc-cpp-20:
     IMAGE: $IMAGE_REGISTRY_URL/full:dune-master-gcc-ubuntu-22.04
     CXX_MAX_STANDARD: "20"
     DUMUX_ENABLE_CPPCHECK: "true"
+    DUMUX_ENABLE_DOXYGEN_BUILD: "true"
 
 ##################################
 # additional scheduled pipelines #
diff --git a/.gitlab-ci/default.yml b/.gitlab-ci/default.yml
index da57ba3d1e..8cdf4a6737 100644
--- a/.gitlab-ci/default.yml
+++ b/.gitlab-ci/default.yml
@@ -23,6 +23,7 @@ variables:
   REFERENCE_SHA: ""
   CXX_MAX_STANDARD: "17"
   DUMUX_ENABLE_CPPCHECK: ""
+  DUMUX_ENABLE_DOXYGEN_BUILD: ""
 
 
 configure:
@@ -142,6 +143,22 @@ select tests:
       artifacts: true
 
 
+doxygen:
+  stage: build
+  rules:
+  - if: $DUMUX_ENABLE_DOXYGEN_BUILD == "true"
+    when: always
+  script:
+    - cd build-cmake
+    - make doxygen_dumux
+  needs:
+    - job: configure
+      artifacts: true
+  artifacts:
+    paths:
+      - build-cmake/doc/doxygen
+
+
 compile cpp:
   stage: build
   script:
-- 
GitLab