Added build job on merge request with Gitlab CI
This commit is contained in:
parent
0443cbfa74
commit
71cfa0991f
2 changed files with 26 additions and 1 deletions
24
.gitlab-ci.yml
Normal file
24
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
image: ros:foxy-ros-base
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH'
|
||||
when: never
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
build-colcon-job:
|
||||
stage: build
|
||||
script:
|
||||
- apt-get update
|
||||
- mkdir -p .src/robossembler-ros2
|
||||
- mv * .src/robossembler-ros2
|
||||
- mv .git .src/robossembler-ros2
|
||||
- mv .src src
|
||||
- vcs import src < src/robossembler-ros2/rasms.repos
|
||||
- rosdep install -y -r -q --from-paths src --ignore-src --rosdistro foxy
|
||||
- colcon build --merge-install --symlink-install --cmake-args '-DCMAKE_BUILD_TYPE=Release' -Wall -Wextra -Wpedantic
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
|
|
@ -15,6 +15,7 @@
|
|||
<depend>rclcpp_action</depend>
|
||||
<depend>geometry_msgs</depend>
|
||||
<depend>tf2_geometry_msgs</depend>
|
||||
<depend>gazebo_msgs</depend>
|
||||
<depend>moveit_msgs</depend>
|
||||
<depend>moveit_core</depend>
|
||||
<depend>moveit_ros_planning</depend>
|
||||
|
@ -25,8 +26,8 @@
|
|||
<depend>plansys2_planner</depend>
|
||||
<depend>plansys2_problem_expert</depend>
|
||||
<depend>plansys2_pddl_parser</depend>
|
||||
<depend>ament_index_cpp</depend>
|
||||
<depend>plansys2_bt_actions</depend>
|
||||
<depend>ament_index_cpp</depend>
|
||||
|
||||
<test_depend>ament_lint_common</test_depend>
|
||||
<test_depend>ament_lint_auto</test_depend>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue