diff --git a/ros1_build.sh b/ros1_build.sh index 21cc7a4..754b354 100755 --- a/ros1_build.sh +++ b/ros1_build.sh @@ -40,10 +40,12 @@ if [ -z "${NO_TEST}" ]; then if [ "${TRAVIS_BRANCH}" == "master" ] && [ -d "./dep" ]; then touch dep/COLCON_IGNORE fi - + + set +e colcon test + set -e colcon test-result --all --verbose - + # get unit test code coverage result case ${PACKAGE_LANG} in "cpp") diff --git a/ros2_build.sh b/ros2_build.sh index fd16ea4..a7f0256 100755 --- a/ros2_build.sh +++ b/ros2_build.sh @@ -33,7 +33,10 @@ if [ -z "${NO_TEST}" ]; then if [ "${TRAVIS_BRANCH}" == "master" ] && [ -d "./dep" ]; then touch dep/COLCON_IGNORE fi + + set +e colcon test + set -e colcon test-result --all --verbose # get unit test code coverage result