mirror of
https://github.com/westonrobot/scout_ros.git
synced 2026-01-12 11:20:02 +08:00
updated ci, added support of catkin_make_isolated and ros noetic
This commit is contained in:
@@ -1,26 +1,44 @@
|
|||||||
image: rduweston/ubuntu-ci:melodic-bionic
|
## Build and test as catkin package
|
||||||
|
melodic-catkin-build:
|
||||||
build:
|
|
||||||
stage: build
|
stage: build
|
||||||
|
image: rduweston/ubuntu-ci:melodic-bionic
|
||||||
before_script:
|
before_script:
|
||||||
- apt update && apt -y install libasio-dev ros-$ROS_DISTRO-teleop-twist-keyboard
|
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
|
||||||
script:
|
script:
|
||||||
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
|
- 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://github.com/westonrobot/wrp_sdk.git
|
- cd /catkin_ws/src && git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/core/wrp_sdk.git
|
||||||
- cd /catkin_ws/src && cp -r $CI_BUILDS_DIR .
|
- 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"
|
- cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make"
|
||||||
# artifacts:
|
|
||||||
# paths:
|
|
||||||
# - build/bin
|
|
||||||
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
|
|
||||||
# cache:
|
|
||||||
# paths:
|
|
||||||
# - "*.o"
|
|
||||||
|
|
||||||
# run tests using the binary built before
|
melodic-catkin-isolated-build:
|
||||||
# test:
|
stage: build
|
||||||
# stage: test
|
image: rduweston/ubuntu-ci:melodic-bionic
|
||||||
# script:
|
before_script:
|
||||||
# - ./build/bin/gtest_all
|
- apt update && apt -y install ros-$ROS_DISTRO-teleop-twist-keyboard
|
||||||
# dependencies:
|
script:
|
||||||
# - build
|
- 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"
|
||||||
Reference in New Issue
Block a user