mirror of
https://github.com/westonrobot/scout_ros.git
synced 2026-01-12 03:15:01 +08:00
Add .gitlab-ci.yml
This commit is contained in:
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
image: rduweston/ubuntu-ci:melodic-bionic
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apt update && apt -y install libasio-dev 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 && cp -r $CI_BUILDS_DIR .
|
||||||
|
- 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
|
||||||
|
# test:
|
||||||
|
# stage: test
|
||||||
|
# script:
|
||||||
|
# - ./build/bin/gtest_all
|
||||||
|
# dependencies:
|
||||||
|
# - build
|
||||||
Reference in New Issue
Block a user