-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
59 lines (50 loc) · 2.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Based on
# Generic .travis.yml file for running continuous integration on Travis-CI for
# any ROS package. (https://github.com/felixduvallet/ros-travis-integration)
# by Felix Duvallet <felixd@gmail.com>
################################################################################
sudo: required
language:
- generic
cache:
- apt
# Build this with 18.04
matrix:
include:
- dist: bionic
env:
- ROS_DISTRO=melodic
# Configuration variables.
env:
global:
- ROS_CI_DESKTOP="`lsb_release -cs`" # e.g. [precise|trusty|...]
- CI_SOURCE_PATH=$(pwd)
- ROSINSTALL_FILE=$CI_SOURCE_PATH/ws_config/simulation_framework_latest.rosinstall
- CATKIN_OPTIONS=$CI_SOURCE_PATH/catkin.options
- ROS_PARALLEL_JOBS='-j8 -l6'
# Set the python path manually to include /usr/-/python2.7/dist-packages
# as this is where apt-get installs python packages.
- PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages
################################################################################
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 C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt-get update -qq
install:
- sudo apt-get install -y ros-$ROS_DISTRO-desktop-full
- sudo apt-get install -y ros-$ROS_DISTRO-tf2-geometry-msgs
- sudo apt-get install -y python-wstool
- sudo apt-get install -y python-catkin-tools
- sudo apt-get install -y python-rosdep
- sudo apt-get install -y libgeographic-dev
- sudo apt-get install -y libpugixml-dev
- sudo apt-get install -y qt5-default
- source /opt/ros/$ROS_DISTRO/setup.bash
- sudo rosdep init
- rosdep update
before_script:
# Source ROS
- source /opt/ros/$ROS_DISTRO/setup.bash
script:
# Set up the workspace (clone and build)
- bash <(wget -qO- https://raw.githubusercontent.com/coincar-sim/coincarsim_getting_started/release/setup_workspace.sh)