Files
scout_ros/.gitlab-ci.yml
2020-10-12 17:38:55 +08:00

66 lines
3.5 KiB
YAML

## Build and test as catkin package
kinetic-catkin-build:
stage: build
image: rduweston/ubuntu-ci:kinetic-xenial
before_script:
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- cd /catkin_ws/src && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/core/wrp_sdk.git
- cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/scout_base
- cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make"
kinetic-catkin-isolated-build:
stage: build
image: rduweston/ubuntu-ci:kinetic-xenial
before_script:
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- cd /catkin_ws/src && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/core/wrp_sdk.git
- cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/scout_base
- cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make_isolated --install"
melodic-catkin-build:
stage: build
image: rduweston/ubuntu-ci:melodic-bionic
before_script:
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- cd /catkin_ws/src && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/core/wrp_sdk.git
- cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/scout_base
- cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make"
melodic-catkin-isolated-build:
stage: build
image: rduweston/ubuntu-ci:melodic-bionic
before_script:
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- cd /catkin_ws/src && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/core/wrp_sdk.git
- cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/scout_base
- cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make_isolated --install"
noetic-catkin-build:
stage: build
image: rduweston/ubuntu-ci:noetic-focal
before_script:
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- cd /catkin_ws/src && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/core/wrp_sdk.git
- cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/scout_base
- cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make"
noetic-catkin-isolated-build:
stage: build
image: rduweston/ubuntu-ci:noetic-focal
before_script:
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- cd /catkin_ws/src && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/core/wrp_sdk.git
- cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/scout_base
- cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make_isolated --install"