-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
41 lines (37 loc) · 1.04 KB
/
.travis.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
# Ubuntu 16.04 (Xenial Xerus) with sudo privileges
dist: xenial
sudo: required
language:
- generic
cache:
- apt
# Environment variables
env:
global:
- ROS_DISTRO=kinetic
- ROS_CI_DESKTOP="`lsb_release -cs`"
- CI_SOURCE_PATH=$(pwd)
- ROS_PARALLEL_JOBS='-j4 -l4'
# ROS installation
before_install:
- sudo sh -c 'echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
- sudo apt-get update
- sudo apt-get install ros-kinetic-desktop-full
- sudo rosdep init
- sudo rosdep update
# Project workspace initalization
install:
- mkdir -p ~/catkin_ws/src
- cd ~/catkin_ws/src
- catkin_init_workspace
- cd ~/catkin_ws
- catkin_make
- source devel/setup.bash
# Project build
script:
- source /opt/ros/$ROS_DISTRO/setup.bash
- cd ~/catkin_ws
- catkin_make
- source devel/setup.bash
# (TODO) Run the tests, ensuring the path is set correctly.