-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
17 lines (17 loc) · 985 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## Build and test as colcon package
foxy-colcon-build:
stage: build
image: rduweston/ubuntu-ci:foxy
before_script:
- apt-get update && apt-get -y install curl ros-$ROS_DISTRO-xacro software-properties-common
- add-apt-repository ppa:lely/ppa
- echo "deb https://westonrobot.jfrog.io/artifactory/wrtoolbox-release focal main" | tee /etc/apt/sources.list.d/weston-robot.list
- echo "deb https://westonrobot.jfrog.io/artifactory/wrtoolbox-release focal next" | tee -a /etc/apt/sources.list.d/weston-robot.list
- curl -sSL 'https://westonrobot.jfrog.io/artifactory/api/security/keypair/wr-deb/public' | apt-key add -
- apt-get update && apt-get -y install wrp_sdk pkg-config liblely-coapp-dev liblely-co-tools
script:
- mkdir -p /ros2_ws/src
# clone/copy source to colcon workspace
- cp -r /builds/$CI_PROJECT_PATH /ros2_ws/src
# invoke colcon build
- cd /ros2_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; colcon build"