Skip to content

Commit

Permalink
build to install space directly (ros-industrial#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-luedtke committed Mar 8, 2017
1 parent fb12931 commit 670a5db
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions industrial_ci/src/tests/source_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ if [ "${USE_MOCKUP// }" != "" ]; then
ln -s "$TARGET_REPO_PATH/$USE_MOCKUP" $CATKIN_WORKSPACE/src
fi

catkin config --install

ici_time_end # setup_workspace

Expand Down Expand Up @@ -145,17 +146,6 @@ fi

if [ "$NOT_TEST_INSTALL" != "true" ]; then

ici_time_start catkin_install_build

# Test if the packages in the downstream repo build.
if [ "$BUILDER" == catkin ]; then
catkin clean --yes || catkin clean -b
catkin config --install
catkin build $OPT_VI --summarize --no-status $BUILD_PKGS_WHITELIST $CATKIN_PARALLEL_JOBS --make-args $ROS_PARALLEL_JOBS
source $CATKIN_WORKSPACE/install/setup.bash
fi

ici_time_end # catkin_install_build
ici_time_start catkin_install_run_tests

export EXIT_STATUS=0
Expand All @@ -167,10 +157,10 @@ if [ "$NOT_TEST_INSTALL" != "true" ]; then
echo "[$pkg] Found $(echo $rostest_files | wc -w) tests."
for test_file in $rostest_files; do
echo "[$pkg] Testing $test_file"
rostest $test_file || export EXIT_STATUS=$?
$CATKIN_WORKSPACE/install/env.sh rostest $test_file || export EXIT_STATUS=$?
if [ $? != 0 ]; then
echo -e "[$pkg] Testing again the failed test: $test_file.\e[31m>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\e[0m"
rostest --text $test_file
$CATKIN_WORKSPACE/install/env.sh rostest --text $test_file
echo -e "[$pkg] Testing again the failed test: $test_file.\e[31m<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\e[0m"
fi
done
Expand All @@ -190,6 +180,6 @@ if [ "${ROS_DISTRO}" == "hydro" ]; then
if [ "$BUILDER" == catkin -a -e $ROS_LOG_DIR ]; then catkin_test_results --all $ROS_LOG_DIR || error; fi
if [ "$BUILDER" == catkin -a -e $CATKIN_WORKSPACE/build/ ]; then catkin_test_results --all $CATKIN_WORKSPACE/build/ || error; fi
if [ "$BUILDER" == catkin -a -e ~/.ros/test_results/ ]; then catkin_test_results --all ~/.ros/test_results/ || error; fi
else
else
catkin_test_results --verbose $CATKIN_WORKSPACE
fi

0 comments on commit 670a5db

Please sign in to comment.