-
Notifications
You must be signed in to change notification settings - Fork 70
/
.travis.yml
25 lines (24 loc) · 1.36 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
sudo: required
dist: bionic
language: generic
env:
- CHECK_PYTHON3_COMPILE=true
- TEST=catkin_lint DOCKER_IMAGE=ubuntu:bionic
- TEST=clang-format DOCKER_IMAGE=ubuntu:focal
- TEST=clang-tidy ROS_DISTRO=melodic DOCKER_IMAGE=ubuntu:bionic
- ROS_DISTRO=hydro DOCKER_IMAGE=ubuntu:precise
- OPENCV_VERSION=2 ROS_DISTRO=indigo DOCKER_IMAGE=ubuntu:trusty
- OPENCV_VERSION=3 ROS_DISTRO=indigo DOCKER_IMAGE=ubuntu:trusty
- ROS_DISTRO=kinetic DOCKER_IMAGE=ubuntu:xenial
- ROS_DISTRO=melodic DOCKER_IMAGE=ubuntu:bionic
- ROS_DISTRO=noetic DOCKER_IMAGE=ubuntu:focal
# Install system dependencies, namely ROS.
script:
- if [ "${CHECK_PYTHON3_COMPILE}" == "true" ]; then python3 -m compileall .; exit $?; fi
- export CI_SOURCE_PATH=$(pwd)
- export REPOSITORY_NAME=${PWD##*/}
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
- docker run --rm -i -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -e "ROS_DISTRO=$ROS_DISTRO" -e "OPENCV_VERSION=$OPENCV_VERSION" -e "TEST=$TEST" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; /bin/bash .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