forked from westonrobot/scout_ros2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
95 lines (88 loc) · 5.08 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
## Build and test as catkin package
# kinetic-catkin-build:
# stage: build
# image: rduweston/ubuntu-ci:kinetic
# before_script:
# - apt-get update && apt-get -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 -b master --recursive https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/public/ugv_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
# before_script:
# - apt-get update && apt-get -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 -b master --recursive https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/public/ugv_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
only:
- melodic
image: rduweston/ubuntu-ci:melodic
before_script:
- apt-get update && apt-get -y install curl ros-$ROS_DISTRO-teleop-twist-keyboard
- echo "deb https://westonrobot.jfrog.io/artifactory/wrtoolbox-release bionic next" | tee /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
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/wr_mobilerobot_ros
- 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
# before_script:
# - apt-get update && apt-get -y install curl ros-$ROS_DISTRO-teleop-twist-keyboard ros-$ROS_DISTRO-std-msgs
# - echo "deb https://westonrobot.jfrog.io/artifactory/wrtoolbox-release bionic next" | tee /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
# script:
# - mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
# - cp -r /builds/$CI_PROJECT_PATH /catkin_ws/src/wr_mobilerobot_ros
# - 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
only:
- noetic
before_script:
- apt-get update && apt-get -y install curl ros-$ROS_DISTRO-teleop-twist-keyboard
- echo "deb https://westonrobot.jfrog.io/artifactory/wrtoolbox-release focal next" | tee /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
script:
- mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- 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
# 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 -b master --recursive https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/westonrobot/public/ugv_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"
## Build and test as colcon package
foxy-colcon-build:
stage: build
image: rduweston/ubuntu-ci:foxy
only:
- foxy
before_script:
- apt-get update && apt-get -y install curl ros-$ROS_DISTRO-xacro
- echo "deb https://westonrobot.jfrog.io/artifactory/wrtoolbox-release focal next" | tee /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
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"