Skip to content
Snippets Groups Projects
.gitlab-ci.yml 3.23 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
#   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
Simon Wittl's avatar
Simon Wittl committed

Simon Wittl's avatar
Simon Wittl committed
#   script:
#    - source ./install/setup.bash
#    - python3 -m  pytest ./rq_controller/test/ --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 ./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

Simon Wittl's avatar
Simon Wittl committed
# 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