From a6c44bb21d0244c103cd962f45b6d3ed614f8a70 Mon Sep 17 00:00:00 2001
From: lorenz <stu203404@mail.uni-kiel.de>
Date: Sun, 14 Feb 2021 02:21:32 +0100
Subject: [PATCH] Add theodolite to gitlab-ci

---
 .gitlab-ci.yml                    | 12 +++++++++++
 theodolite-quarkus/.gitlab-ci.yml | 34 +++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 theodolite-quarkus/.gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0dda0bdb6..61d6dad2d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,3 +30,15 @@ execution:
       - execution/*
     - when: manual
       allow_failure: true
+
+check:
+  stage: triggers
+  trigger:
+    include: theodolite-quarkus/.gitlab-ci.yml
+    strategy: depend
+  rules:
+    - if: "$CI_COMMIT_TAG"
+    - changes:
+      - theodolite-quarkus/*
+    - when: manual
+      allow_failure: true
diff --git a/theodolite-quarkus/.gitlab-ci.yml b/theodolite-quarkus/.gitlab-ci.yml
new file mode 100644
index 000000000..f4b6de955
--- /dev/null
+++ b/theodolite-quarkus/.gitlab-ci.yml
@@ -0,0 +1,34 @@
+image: openjdk:11-jdk
+
+stages:
+  - build
+  - test
+  #- package
+
+before_script:
+  - export GRADLE_USER_HOME=`pwd`/.gradle
+
+cache:
+  paths:
+    - .gradle/wrapper
+    - .gradle/caches
+
+compile:
+  stage: build
+  script:
+    - ./theodolite-quarkus/gradlew build
+
+test:
+  stage: test
+  script:
+    - ./theodolite-quarkus/gradlew test --stacktrace
+
+# code_style_klint:
+#   stage: test
+#   script:
+#     - ./theodolite-quarkus/gradlew ktlintCheck
+
+codeanalysis_detekt: 
+  stage: test
+  script:
+     - ./theodolite-quarkus/gradlew detekt
\ No newline at end of file
-- 
GitLab