Skip to content

Commit

Permalink
Updated TravisCI for Kinetic and Melodic.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaltovski committed Sep 27, 2019
1 parent ad3c644 commit 95b544e
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
sudo: required
dist: trusty
language: generic
compiler:
- gcc
- clang
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)

language: generic # optional, just removes the language badge

services:
- docker

# include the following block if the C/C++ build artifacts should get cached by Travis,
# CCACHE_DIR needs to get set as well to actually fill the cache
cache:
directories:
- $HOME/.ccache

git:
quiet: true # optional, silences the cloning of the target repository

# configure the build environment(s)
# https://github.com/ros-industrial/industrial_ci/blob/master/doc/index.rst#variables-you-can-configure
env:
- CC=gcc CXX=g++
- CC=clang CXX=clang++
global: # global settings for all jobs
- ROS_REPO=ros
- CCACHE_DIR=$HOME/.ccache # enables C/C++ caching in industrial_ci
matrix: # each line is a job
- ROS_DISTRO="kinetic"
- ROS_DISTRO="melodic"

# clone and run industrial_ci
install:
- export CI_ROS_DISTRO=indigo
- sudo sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install python-rosdep -y
- sudo `which rosdep` init
- rosdep update
- rosdep install --default-yes --from-paths . --ignore-src --rosdistro $CI_ROS_DISTRO
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master
script:
- mkdir -p ~/catkin_ws/src
- ln -s $TRAVIS_BUILD_DIR ~/catkin_ws/src/repo
- cd ~/catkin_ws
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- catkin_make
- catkin_make run_tests
- catkin_test_results .
- catkin_make install
notifications:
email: false
- .industrial_ci/travis.sh

0 comments on commit 95b544e

Please sign in to comment.