Skip to content

Commit

Permalink
Travis build: invoke git diff once
Browse files Browse the repository at this point in the history
  • Loading branch information
Minoru authored and leha-bot committed Oct 14, 2019
1 parent f1fb375 commit b97fccb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE $EXTRA_CMAKE_FLAGS -DBUILD_TESTING
# grep returns number of items found. each change is enclosed into <replacement>
# tag in the xml. Thus if no changes needed, 0 will be returned
cmake --build . --target clang-format -- -v
if [[ $(git diff) ]]; then
git diff | cat
exit 1
else
echo "Success!"
fi
git diff --exit-code && echo "Success!" || exit 1
cmake --build . -- -v || exit 1
ASAN_OPTIONS=alloc_dealloc_mismatch=0 ctest . || exit 1

0 comments on commit b97fccb

Please sign in to comment.