-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
43 lines (43 loc) · 1.82 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
language:
- cpp
- python
python:
- "2.7"
compiler:
- gcc
cache:
apt: true
pip: true
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- $HOME/apt-cacher-ng
sudo: required
dist: bionic
services:
- docker
env:
global:
- ROSWS=wstool
- BUILDER=catkin
- USE_TRAVIS=true
- USE_DOCKER=true
- ROS_PARALLEL_JOBS="-j8 -l1"
- CATKIN_PARALLEL_TEST_JOBS="-p1 -j8"
matrix:
- ROS_DISTRO=hydro USE_DEB=true
- ROS_DISTRO=indigo USE_DEB=true
- ROS_DISTRO=kinetic USE_DEB=true
- ROS_DISTRO=melodic USE_DEB=true
before_script:
# Install openrtm_aist & add osrf
- add_scr="sudo apt-get install -qq -y ros-${ROS_DISTRO}-openrtm-aist; sudo -E sh -c \"echo \\\"deb http://packages.osrfoundation.org/gazebo/ubuntu-stable \`lsb_release -cs\` main\\\" > /etc/apt/sources.list.d/gazebo-latest.list\"; wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -; sudo apt-get update -qq"; if [ "${BEFORE_SCRIPT}" == "" ] ; then export BEFORE_SCRIPT=${add_scr}; else export BEFORE_SCRIPT="${BEFORE_SCRIPT}; ${add_scr}"; fi
# On kinetic and melodic, drcsim is not released
- if [ ${ROS_DISTRO} != "kinetic" ] && [ ${ROS_DISTRO} != "melodic" ] ; then export BEFORE_SCRIPT="${BEFORE_SCRIPT}; sudo apt-get install -qq -y drcsim"; fi
script:
- if [ "${ROS_DISTRO}" == "hydro" ] ; then sudo apt-get install -y --force-yes gdebi && wget https://bintray.com/artifact/download/furushchev/ros-shadow-fixed/python-catkin-tools_0.3.1-1_all.deb && wget https://bintray.com/artifact/download/furushchev/ros-shadow-fixed/python-catkin-pkg_0.2.10-1_all.deb && sudo gdebi -n -q python-catkin-pkg_0.2.10-1_all.deb && sudo gdebi -n -q python-catkin-tools_0.3.1-1_all.deb && sudo apt-mark hold python-catkin-tools; fi
- source .travis/travis.sh
notifications:
email:
on_success: always
on_failure: always