Skip to content
Snippets Groups Projects
.gitlab-ci.yml 3.13 KiB
Newer Older
Simon Wittl's avatar
Simon Wittl committed
stages:
Simon Wittl's avatar
Simon Wittl committed
  - test
Simon Wittl's avatar
Simon Wittl committed
  - build
Simon Wittl's avatar
Simon Wittl committed
  - docu
Simon Wittl's avatar
Simon Wittl committed

Simon Wittl's avatar
Simon Wittl committed
cache:
  - paths: 
    - /home/install/
Simon Wittl's avatar
Simon Wittl committed

Simon Wittl's avatar
Simon Wittl committed
rq-pytests:
  stage: test
Simon Wittl's avatar
Simon Wittl committed
  image: ros:humble
  before_script:
Simon Wittl's avatar
Simon Wittl committed
   - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@mygit.th-deg.de/roboct/robo_quality/rq_interfaces
Simon Wittl's avatar
Simon Wittl committed
   - 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
Simon Wittl's avatar
Simon Wittl committed
   - rosdep install --from-paths . -y --ignore-src
Simon Wittl's avatar
Simon Wittl committed
   - colcon build --merge-install
Simon Wittl's avatar
Simon Wittl committed
   - apt update
Simon Wittl's avatar
Simon Wittl committed
   - apt install wget
   - wget https://bootstrap.pypa.io/get-pip.py
   - python3 ./get-pip.py
Simon Wittl's avatar
Simon Wittl committed
   - pip3 install pytest pytest-cov netCDF4 ros2-numpy Pillow pyometiff
Simon Wittl's avatar
Simon Wittl committed

  script:
Simon Wittl's avatar
Simon Wittl committed
   - source ./install/setup.bash
Simon Wittl's avatar
Simon Wittl committed
   - python3 -m ./rq_controller/pytest --junitxml=report.xml
Simon Wittl's avatar
Simon Wittl committed
build-ros:
  stage: build
Simon Wittl's avatar
Simon Wittl committed
  dependencies: [rq-pytests]
Simon Wittl's avatar
Simon Wittl committed
  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
Simon Wittl's avatar
Simon Wittl committed
  script:
Simon Wittl's avatar
Simon Wittl committed
    - source ./home/install/setup.bash
Simon Wittl's avatar
Simon Wittl committed
  artifacts:
    when: always
    paths:
      - install
Simon Wittl's avatar
Simon Wittl committed
    name: ubuntu_humble
Simon Wittl's avatar
Simon Wittl committed

create-docu:
  stage: docu
Simon Wittl's avatar
Simon Wittl committed
  dependencies: [rq-pytests]
Simon Wittl's avatar
Simon Wittl committed
  before_script:
Simon Wittl's avatar
Simon Wittl committed
   - 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
Simon Wittl's avatar
Simon Wittl committed
    - pip3 install pdoc3
Simon Wittl's avatar
Simon Wittl committed
  script:
Simon Wittl's avatar
Simon Wittl committed
    - source ./home/install/setup.bash
Simon Wittl's avatar
Simon Wittl committed
    - mkdir doc
Simon Wittl's avatar
Simon Wittl committed
    - python3 -m pdoc3 --html rq_controller -o=./doc/rq_controller -c show_source_code=True
Simon Wittl's avatar
Simon Wittl committed
  artifacts:
    when: always
    paths:
      - doc