-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated TravisCI for Kinetic and Melodic.
- Loading branch information
1 parent
ad3c644
commit 95b544e
Showing
1 changed file
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |