2017-08-23 08:03:21 +09:00
|
|
|
sudo: false
|
2016-04-03 02:28:34 +09:00
|
|
|
dist: trusty
|
|
|
|
|
language: generic
|
2017-08-23 08:08:10 +09:00
|
|
|
services:
|
|
|
|
|
- docker
|
2017-08-26 05:04:14 +09:00
|
|
|
cache: ccache
|
2016-04-03 02:28:34 +09:00
|
|
|
env:
|
|
|
|
|
matrix:
|
2018-05-03 02:00:12 +09:00
|
|
|
# Test the target distro.
|
|
|
|
|
- ROS_DISTRO=melodic DOCKER_IMAGE=debian:stretch
|
|
|
|
|
- ROS_DISTRO=melodic DOCKER_IMAGE=ubuntu:artful
|
|
|
|
|
- ROS_DISTRO=melodic DOCKER_IMAGE=ubuntu:bionic
|
|
|
|
|
# To test backward compatibility for users who build from source.
|
2018-05-03 04:54:48 +09:00
|
|
|
- ROS_DISTRO=lunar DOCKER_IMAGE=debian:stretch NOT_TEST_INSTALL=true
|
|
|
|
|
- ROS_DISTRO=lunar DOCKER_IMAGE=ubuntu:xenial NOT_TEST_INSTALL=true
|
|
|
|
|
- ROS_DISTRO=kinetic DOCKER_IMAGE=debian:jessie NOT_TEST_INSTALL=true
|
|
|
|
|
- ROS_DISTRO=kinetic DOCKER_IMAGE=ubuntu:xenial NOT_TEST_INSTALL=true
|
|
|
|
|
- ROS_DISTRO=indigo DOCKER_IMAGE=ubuntu:trusty NOT_TEST_INSTALL=true
|
2016-04-03 02:28:34 +09:00
|
|
|
# Install system dependencies, namely ROS.
|
|
|
|
|
before_install:
|
|
|
|
|
# Define some config vars.
|
|
|
|
|
- export CI_SOURCE_PATH=$(pwd)
|
|
|
|
|
- export REPOSITORY_NAME=${PWD##*/}
|
|
|
|
|
script:
|
|
|
|
|
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
|
2017-08-23 08:05:26 +09:00
|
|
|
- docker run --rm -i -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -v $HOME:$HOME -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -e "ROS_DISTRO=$ROS_DISTRO" -e "ROS_PARALLEL_JOBS=$ROS_PARALLEL_JOBS" -e "DOCKER_IMAGE=$DOCKER_IMAGE" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh"
|
2016-04-03 02:28:34 +09:00
|
|
|
after_failure:
|
|
|
|
|
- find ${HOME}/.ros/test_results -type f -exec echo "== {} ==" \; -exec cat {} \;
|
|
|
|
|
- for file in ${HOME}/.ros/log/rostest-*; do echo "=== $file ==="; cat $file; done
|
2017-08-22 23:42:58 +09:00
|
|
|
branches:
|
|
|
|
|
only:
|
2018-03-31 20:21:19 +09:00
|
|
|
- /.*-devel$/
|