forked from PilzDE/pilz_application_templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (38 loc) · 1.19 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
sudo: required
language: python
python:
- "2.7"
cache: pip
services:
- docker
notifications:
email:
on_failure: always
recipients:
matrix:
include:
- os: linux
dist: xenial
env: ROS_DISTRO="kinetic"
- os: linux
dist: bionic
env: ROS_DISTRO="melodic"
before_install:
- echo $(lsb_release -sc)
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt update
- sudo apt install python-pip ros-${ROS_DISTRO}-rosbash ros-${ROS_DISTRO}-roslaunch
- sudo pip install catkin-lint rospkg
install:
- sudo apt-get install $(awk '{print $1'} versions_${ROS_DISTRO}.list)
script:
- source /opt/ros/$ROS_DISTRO/setup.bash
- export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages
- export ROS_PACKAGE_PATH=$(pwd):$ROS_PACKAGE_PATH
- catkin_lint -W2 --strict prbt_default_application
- rosrun roslaunch roslaunch-check prbt_default_application/launch