From a401dc20ccfc838d0197fae605b6af492f8ffe08 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20O=C5=A1lej=C5=A1ek?= <oslejsek@fi.muni.cz>
Date: Thu, 1 Apr 2021 07:55:55 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 48 ++++++++++++++++++++++++++----------------------
 1 file changed, 26 insertions(+), 22 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 184cb69c..173fb138 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,7 @@ stages:
     - document
     - publish
 
+# Builds code and generates documentation
 build:
   stage: build
   script:
@@ -26,6 +27,10 @@ build:
   artifacts:
     paths:
     - application/target/$PROJECT_ARTIFACT_ID-*.zip
+    - MeshModel/target/site/apidocs/
+    - GUI/target/site/apidocs/
+    - Comparison/target/site/apidocs/
+    - target/site/apidocs/
     expire_in: 1 hour
     when: on_success
 
@@ -43,28 +48,27 @@ test:
     - if: '$CI_COMMIT_BRANCH'
 
 # generate documentation when commiting to master and the VERSION.txt file has changed
-document:
-  stage: document
-  script:
-    - mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:javadoc
-    - mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:aggregate
-  tags:
-    - shared-fi
-  rules:
-    - if: '$CI_COMMIT_BRANCH'
-    - if: '$CI_COMMIT_BRANCH == "master"'
-      changes:
-        - VERSION.txt
-    - if: '$CI_COMMIT_BRANCH'
-      when: never
-  artifacts:
-    paths:
-    - MeshModel/target/site/apidocs/
-    - GUI/target/site/apidocs/
-    - Comparison/target/site/apidocs/
-    - target/site/apidocs/
-    expire_in: 1 hour
-    when: on_success
+#document:
+#  stage: document
+#  script:
+#    - mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:javadoc
+#    - mvn -Dauthor=false -Dcheckstyle.fail=false -DadditionalJOption=-Xdoclint:none javadoc:aggregate
+#  tags:
+#    - shared-fi
+#  rules:
+#    - if: '$CI_COMMIT_BRANCH == "master"'
+#      changes:
+#        - VERSION.txt
+#    - if: '$CI_COMMIT_BRANCH'
+#      when: never
+#  artifacts:
+#    paths:
+#    - MeshModel/target/site/apidocs/
+#    - GUI/target/site/apidocs/
+#    - Comparison/target/site/apidocs/
+#    - target/site/apidocs/
+#    expire_in: 1 hour
+#    when: on_success
 
 # publish release when commiting to master and the VERSION.txt file has changed
 publish:
-- 
GitLab