33 lines
1.4 KiB
YAML
33 lines
1.4 KiB
YAML
sudo: false
|
|
dist: trusty
|
|
language: generic
|
|
services:
|
|
- docker
|
|
cache: ccache
|
|
env:
|
|
matrix:
|
|
# 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.
|
|
- 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
|
|
# 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"
|
|
- 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"
|
|
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
|
|
branches:
|
|
only:
|
|
- /.*-devel$/
|