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

test

parent 8fd69400
No related branches found
No related tags found
No related merge requests found
...@@ -4,39 +4,37 @@ stages: ...@@ -4,39 +4,37 @@ stages:
- docu - docu
cache: cache:
- key: cache-$CI_COMMIT_REF_SLUG key: cache-$CI_COMMIT_REF_SLUG
- paths: paths:
- /home/ - /home/
.before_script_template: .before_script_template: &before_script_template
before_script: before_script:
- cd /home/ - cd /home/
- 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_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_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_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_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_trajectory
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_reconstruction - 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 - apt-get update && apt-get install -y wget python3-pip
- colcon build --merge-install - rosdep install --from-paths . -y --ignore-src
- apt update - colcon build --merge-install
- apt install wget
- wget https://bootstrap.pypa.io/get-pip.py
- python3 ./get-pip.py
rq-pytests: rq-pytests:
stage: test stage: test
image: ros:humble image: ros:humble
extends: .before_script_template <<: *before_script_template
script: script:
- pip3 install pytest pytest-cov netCDF4 ros2-numpy Pillow pyometiff scipy - pip3 install pytest pytest-cov netCDF4 ros2-numpy Pillow pyometiff scipy
# - python3 -m pytest ./rq_controller/test/ --junitxml=report.xml # Uncomment the following line to run tests
# - python3 -m pytest ./rq_controller/test/ --junitxml=report.xml
build-ros: build-ros:
stage: build stage: build
image: ros:humble image: ros:humble
dependencies: [rq-pytests] dependencies:
- rq-pytests
script: script:
- cd /home/ - cd /home/
- source ./install/setup.bash - source ./install/setup.bash
...@@ -49,18 +47,20 @@ build-ros: ...@@ -49,18 +47,20 @@ build-ros:
create-docu: create-docu:
stage: docu stage: docu
image: ros:humble image: ros:humble
dependencies: [rq-pytests] dependencies:
- rq-pytests
before_script: before_script:
- cd /home/ - cd /home/
- python3 ./get-pip.py - apt-get update && apt-get install -y wget python3-pip
- pip3 install pdoc3 netCDF4 ros2-numpy Pillow pyometiff scipy open3d pathfinding3d - pip3 install pdoc3 netCDF4 ros2-numpy Pillow pyometiff scipy open3d pathfinding3d
- git clone https://github.com/wittlsn/aRTist-PythonLib.git -b artist_thd_wip - git clone https://github.com/wittlsn/aRTist-PythonLib.git -b artist_thd_wip
- pip3 install ./aRTist-PythonLib/ - pip3 install ./aRTist-PythonLib/
script: script:
- cd /home/ - cd /home/
- source ./install/setup.bash - source ./install/setup.bash
- mkdir doc - mkdir -p doc
- python3 -m pdoc --html rq_controller -o=./doc/rq_controller -c show_source_code=True - python3 -m pdoc --html rq_controller -o=./doc/rq_controller -c show_source_code=True
# Uncomment the following line to generate documentation for rq_hardware
# - python3 -m pdoc --html rq_hardware -o=./doc/rq_hardware -c show_source_code=True # - python3 -m pdoc --html rq_hardware -o=./doc/rq_hardware -c show_source_code=True
artifacts: artifacts:
when: always when: always
......
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