Add NOT_TEST_INSTALL option to .travis.sh

This commit is contained in:
Kentaro Wada 2018-05-03 04:54:48 +09:00
parent 25c86b2115
commit 9b4d31c912
2 changed files with 13 additions and 8 deletions

View File

@ -22,6 +22,9 @@ function travis_time_end {
set -x
}
# Default configuration
test "$NOT_TEST_INSTALL" = "" && export NOT_TEST_INSTALL=false
# Mainly for https://github.com/ros-perception/perception_pcl/pull/197#issuecomment-386056906
export DEBIAN_FRONTEND=noninteractive
@ -78,7 +81,9 @@ cd ~/catkin_ws
catkin build -p1 -j1
catkin run_tests -p1 -j1
catkin_test_results --all build
catkin clean -b --yes
catkin config --install
catkin build -p1 -j1
if [ "$NOT_TEST_INSTALL" != "true" ]; then
catkin clean -b --yes
catkin config --install
catkin build -p1 -j1
fi
travis_time_end

View File

@ -11,11 +11,11 @@ env:
- 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
- ROS_DISTRO=lunar DOCKER_IMAGE=ubuntu:xenial
- ROS_DISTRO=kinetic DOCKER_IMAGE=debian:jessie
- ROS_DISTRO=kinetic DOCKER_IMAGE=ubuntu:xenial
- ROS_DISTRO=indigo DOCKER_IMAGE=ubuntu:trusty
- 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.