forked from uos/lucia_turtlebot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
26 lines (25 loc) · 1018 Bytes
/
.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
image: ros:indigo
build:
stage: build
script:
- export LC_ALL="en_US.UTF-8"
- export CI_ROS_DISTRO="indigo"
- export CATKIN_WS=~/catkin_ws
- export CATKIN_WS_SRC=${CATKIN_WS}/src
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-get update -qq
- sudo apt-get install -qq wget
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y python-rosdep ros-$CI_ROS_DISTRO-catkin git build-essential cmake
#- sudo rosdep init # already exists in ros:indigo docker image
- rosdep update
- mkdir -p $CATKIN_WS_SRC
- cd $CATKIN_WS_SRC/
- ln -s $CI_PROJECT_DIR $CATKIN_WS_SRC/
- cd lucia_turtlebot
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- catkin_init_workspace
- cd $CATKIN_WS
- catkin_make -DCMAKE_BUILD_TYPE=Release install