-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
47 lines (47 loc) · 1.47 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
42
43
44
45
46
47
sudo: required
language: python
cache:
- apt
jobs:
include:
- name: "Xenial kinetic"
python: 2.7
dist: xenial
env: ROS_DISTRO=kinetic
- name: "Bionic melodic"
python:
- "2.7"
- "3.5"
dist: bionic
env: ROS_DISTRO=melodic
env:
global:
- ROS_CI_DESKTOP="`lsb_release -cs`" # e.g. [precise|trusty|...]
- CI_SOURCE_PATH=$(pwd)
- ROSINSTALL_FILE=$CI_SOURCE_PATH/dependencies.rosinstall
- CATKIN_OPTIONS=$CI_SOURCE_PATH/catkin.options
- ROS_PARALLEL_JOBS='-j8 -l6'
virtualenv:
system_site_packages: true
# command to install dependencies
# Install system dependencies, namely a very barebones ROS setup.
before_install:
- mkdir -p ~/catkin_ws/src
- ln -s $CI_SOURCE_PATH ~/catkin_ws/src/
- 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://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt-get update -qq
- sudo apt-get install dpkg
- sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-ros-base
- source /opt/ros/$ROS_DISTRO/setup.bash
# Prepare rosdep to install dependencies.
- sudo rosdep init
- rosdep update
install:
- pip install -I nose
- cd ~/catkin_ws
- rosdep install --from-paths src --ignore-src -r -y
- catkin_make
# command to run tests
script:
- catkin_make run_tests && catkin_test_results