Skip to content
Snippets Groups Projects
Commit d5da4f92 authored by Simon Wittl's avatar Simon Wittl
Browse files

use extends

parent 69eef917
No related branches found
No related tags found
No related merge requests found
......@@ -7,22 +7,27 @@ cache:
- paths:
- /home/install/
.before_script_template
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
rq-pytests:
stage: test
image: ros:humble
extends: .before_script_template
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 scipy
script:
......@@ -31,17 +36,8 @@ rq-pytests:
build-ros:
stage: build
image: ros:humble
extends: .before_script_template
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
script:
- source ./install/setup.bash
artifacts:
......@@ -52,21 +48,9 @@ build-ros:
create-docu:
stage: docu
image: ros:humble
extends: .before_script_template
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 netCDF4 ros2-numpy Pillow pyometiff scipy open3d pathfinding3d
- git clone https://github.com/wittlsn/aRTist-PythonLib.git -b artist_thd_wip
- pip3 install ./aRTist-PythonLib/
......@@ -75,8 +59,8 @@ create-docu:
- mkdir doc
- python3 -m pdoc --html rq_controller -o=./doc/rq_controller -c show_source_code=True
# - python3 -m pdoc --html rq_hardware -o=./doc/rq_hardware -c show_source_code=True
artifacts:
when: always
paths:
- doc
name: rq_docstrings
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment