From 4497b12d6316050e78c973e07924c23fa55bfcc5 Mon Sep 17 00:00:00 2001
From: Leonard Haddad <s_xsipo6@uni-bremen.de>
Date: Sat, 30 May 2020 15:09:56 +0200
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4711ba64..6d5f0b50 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ image: java:latest
 
 stages:
   - build
+  - javadoc
   - test
 
 cache:
@@ -20,6 +21,18 @@ build:
   only:
     - master
 
+javadoc:
+  stage: javadoc
+  script:
+    - ./gradle javadoc
+  artifacts:
+    paths:
+      - build/doc/*
+    expire_in: 1 week
+  only:
+    - master
+
+
 test:
   stage: test
   script:
-- 
GitLab