diff --git a/travis.sh b/travis.sh index 43559da3..85dd49be 100755 --- a/travis.sh +++ b/travis.sh @@ -127,6 +127,7 @@ travis_time_start setup_rosws mkdir -p ~/ros/ws_$REPOSITORY_NAME/src cd ~/ros/ws_$REPOSITORY_NAME catkin init +catkin config --merge-devel # in catkin_tools>=0.4.0, --link-devel is the default so this is required catkin config $CATKIN_TOOLS_CONFIG_OPTIONS cd ~/ros/ws_$REPOSITORY_NAME/src if [ "$USE_DEB" == false ]; then @@ -190,9 +191,7 @@ source /opt/ros/$ROS_DISTRO/setup.bash > /tmp/$$.x 2>&1; grep export\ [^_] /tmp/ # for catkin if [ "${TARGET_PKGS// }" == "" ]; then export TARGET_PKGS=`catkin_topological_order ${CI_SOURCE_PATH} --only-names`; fi if [ "${TEST_PKGS// }" == "" ]; then export TEST_PKGS=$( [ "${BUILD_PKGS// }" == "" ] && echo "$TARGET_PKGS" || echo "$BUILD_PKGS"); fi -set -o pipefail # this is necessary to pipe fail status on grepping -catkin build $CATKIN_TOOLS_BUILD_OPTIONS $BUILD_PKGS $CATKIN_PARALLEL_JOBS --make-args $ROS_PARALLEL_JOBS | grep -v -e Symlinking -e Linked -set +o pipefail +catkin build $CATKIN_TOOLS_BUILD_OPTIONS $BUILD_PKGS $CATKIN_PARALLEL_JOBS --make-args $ROS_PARALLEL_JOBS travis_time_end travis_time_start catkin_run_tests @@ -205,9 +204,7 @@ if [ "$ROS_DISTRO" == "hydro" ]; then fi source devel/setup.bash > /tmp/$$.x 2>&1; grep export\ [^_] /tmp/$$.x ; rospack profile # force to update ROS_PACKAGE_PATH for rostest -set -o pipefail # this is necessary to pipe fail status on grepping -catkin run_tests -i --no-deps --no-status $TEST_PKGS $CATKIN_PARALLEL_TEST_JOBS --make-args $ROS_PARALLEL_TEST_JOBS -- | grep -v -e Symlinking -e Linked -e :[^\s]*install[^\s]*\] -set +o pipefail +catkin run_tests -i --no-deps --no-status $TEST_PKGS $CATKIN_PARALLEL_TEST_JOBS --make-args $ROS_PARALLEL_TEST_JOBS -- catkin_test_results --verbose --all build || error travis_time_end @@ -218,9 +215,7 @@ if [ "$NOT_TEST_INSTALL" != "true" ]; then catkin clean --yes || catkin clean -a # 0.3.1 uses -a, 0.4.0 uses --yes catkin config --install $CATKIN_TOOLS_CONFIG_OPTIONS - set -o pipefail # this is necessary to pipe fail status on grepping - catkin build $CATKIN_TOOLS_BUILD_OPTIONS $BUILD_PKGS $CATKIN_PARALLEL_JOBS --make-args $ROS_PARALLEL_JOBS | grep -v -e Symlinking -e Linked -e :[^\s]*install[^\s]*\] - set +o pipefail + catkin build $CATKIN_TOOLS_BUILD_OPTIONS $BUILD_PKGS $CATKIN_PARALLEL_JOBS --make-args $ROS_PARALLEL_JOBS source install/setup.bash > /tmp/$$.x 2>&1; grep export\ [^_] /tmp/$$.x rospack profile rospack plugins --attrib=plugin nodelet || echo "ok"