From 614a7bbf22038f064bbcb96375b3c8e6e3a92462 Mon Sep 17 00:00:00 2001
From: swittl <simon.wittl@th-deg.de>
Date: Thu, 11 Jul 2024 21:41:45 +0200
Subject: [PATCH] ci tests ...

---
 .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..f9c7472
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,38 @@
+.lin-cache: &lin-cache
+  key: "${CI_COMMIT_REF_SLUG}_linux"
+  paths:
+    - licence_swap/
+    - .cache
+
+.win-cache: &win-cache
+  key: "${CI_COMMIT_REF_SLUG}_windows"
+  paths:
+    - licence_swap/
+    - .cache
+
+variables:  # Change pip's cache directory to be inside the project directory since we can only cache local items.
+  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
+  APT_DIR: "$CI_PROJECT_DIR/.cache/.apt"
+  APT_STATE_LISTS: "$APT_DIR/lists"
+  APT_CACHE_ARCHIVES: "$APT_DIR/archives"
+
+stages:
+  - build
+
+
+pytest:
+  stage: build
+  image: ros:humble
+  cache:
+    - <<: *lin-cache
+  tags:
+    - linux
+  before_script:
+   - git clone --recurse-submodules -j8 https://mygit.th-deg.de/roboct/robo_quality/rq_workflow
+  script:
+   - colcon build . --merge-install
+  coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
+  artifacts:
+    when: always
+    paths:
+      - install
-- 
GitLab