Skip to content

Commit

Permalink
fix for build erroring out when dep/ directory does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Miaofei <miaofei@amazon.com>
  • Loading branch information
mm318 authored and ross-desmond committed Jun 26, 2019
1 parent d760da7 commit fa80375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ros1_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ if [ -z "${NO_TEST}" ]; then
# run unit tests
. ./install/setup.sh

if [ "${TRAVIS_BRANCH}" == "master" ]; then
if [ "${TRAVIS_BRANCH}" == "master" ] && [ -d "./dep" ]; then
touch dep/COLCON_IGNORE
fi

colcon test
colcon test-result --all --verbose

# get unit test code coverage result
case ${PACKAGE_LANG} in
"cpp")
case ${PACKAGE_LANG} in
"cpp")
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
Expand Down

0 comments on commit fa80375

Please sign in to comment.