Skip to content

Commit

Permalink
Account for failed underlay builds
Browse files Browse the repository at this point in the history
if we don't happen to clean the underlay
when we keep the underlay from the docker image

Copy logic to overlay for consistency in behavior
  • Loading branch information
ruffsl committed Jul 31, 2019
1 parent 77d6e27 commit d4cee9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ references:
name: Build Underlay
command: |
cd $ROS_WS
if [ -d install ]
if [ -d install ] && [ ! -f build_failed ]
then
echo "Skipping Underlay Build"
else
Expand All @@ -72,6 +72,7 @@ references:
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
rm -f build_failed
fi
save_underlay_cache: &save_underlay_cache
save_cache:
Expand Down Expand Up @@ -114,7 +115,7 @@ references:
run:
name: Build Overlay
command: |
if [ -d install ]
if [ -d install ] && [ ! -f build_failed ]
then
echo "Skipping Overlay Build"
else
Expand All @@ -126,6 +127,7 @@ references:
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCOVERAGE_ENABLED=$COVERAGE_ENABLED
rm -f build_failed
fi
save_ccache: &save_ccache
save_cache:
Expand Down

0 comments on commit d4cee9e

Please sign in to comment.