From 8e4683b8fb459b5b63dcfc2c2f2b7d292a9beeb1 Mon Sep 17 00:00:00 2001
From: swittl <simon.wittl@th-deg.de>
Date: Fri, 12 Jul 2024 09:50:13 +0200
Subject: [PATCH] forgot images

---
 .gitlab-ci.yml | 106 +++++++++++++++++++++++++------------------------
 1 file changed, 54 insertions(+), 52 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e7ac8c1..8c54470 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,37 +1,38 @@
 stages:
-  # - test
+  - test
   - build
-  # - docu
+  - docu
 
-# cache:
-#   - paths: 
-#     - /home/install/
+cache:
+  - paths: 
+    - /home/install/
 
-# rq-pytests:
-#   stage: test
-#   image: ros:humble
-#   before_script:
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_interfaces
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_hardware
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_controller
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_ddetection
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_trajectory
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_reconstruction
-#    - rosdep install --from-paths . -y --ignore-src
-#    - colcon build --merge-install
-#    - apt update
-#    - apt install wget
-#    - wget https://bootstrap.pypa.io/get-pip.py
-#    - python3 ./get-pip.py
-#    - pip3 install pytest pytest-cov netCDF4 ros2-numpy Pillow pyometiff
+rq-pytests:
+  stage: test
+  image: ros:humble
+  before_script:
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_interfaces
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_hardware
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_controller
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_ddetection
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_trajectory
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_reconstruction
+   - rosdep install --from-paths . -y --ignore-src
+   - colcon build --merge-install
+   - apt update
+   - apt install wget
+   - wget https://bootstrap.pypa.io/get-pip.py
+   - python3 ./get-pip.py
+   - pip3 install pytest pytest-cov netCDF4 ros2-numpy Pillow pyometiff
 
-#   script:
-#    - source ./install/setup.bash
-#    - python3 -m  pytest ./rq_controller/test/ --junitxml=report.xml
+  script:
+   - source ./install/setup.bash
+   - python3 -m  pytest ./rq_controller/test/ --junitxml=report.xml
    
 build-ros:
   stage: build
-  # dependencies: [rq-pytests]
+  image: ros:humble
+  dependencies: [rq-pytests]
   before_script:
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_interfaces
    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_hardware
@@ -42,35 +43,36 @@ build-ros:
    - rosdep install --from-paths . -y --ignore-src
    - colcon build --merge-install
   script:
-    - source ./install/setup.bash
+    - source ./home/install/setup.bash
   artifacts:
     when: always
     paths:
       - install
     name: ubuntu_humble
 
-# create-docu:
-#   stage: docu
-#   dependencies: [rq-pytests]
-#   before_script:
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_interfaces
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_hardware
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_controller
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_ddetection
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_trajectory
-#    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_reconstruction
-#    - rosdep install --from-paths . -y --ignore-src
-#    - colcon build --merge-install
-#    - apt update
-#    - apt install wget
-#    - wget https://bootstrap.pypa.io/get-pip.py
-#    - python3 ./get-pip.py
-#    - pip3 install pdoc3
-#   script:
-#     - source ./home/install/setup.bash
-#     - mkdir doc
-#     - python3 -m pdoc3 --html rq_controller -o=./doc/rq_controller -c show_source_code=True
-#   artifacts:
-#     when: always
-#     paths:
-#       - doc
+create-docu:
+  stage: docu
+  image: ros:humble
+  dependencies: [rq-pytests]
+  before_script:
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_interfaces
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_hardware
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_controller
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_ddetection
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_trajectory
+   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_reconstruction
+   - rosdep install --from-paths . -y --ignore-src
+   - colcon build --merge-install
+   - apt update
+   - apt install wget
+   - wget https://bootstrap.pypa.io/get-pip.py
+   - python3 ./get-pip.py
+   - pip3 install pdoc3
+  script:
+    - source ./home/install/setup.bash
+    - mkdir doc
+    - python3 -m pdoc3 --html rq_controller -o=./doc/rq_controller -c show_source_code=True
+  artifacts:
+    when: always
+    paths:
+      - doc
-- 
GitLab