Travis build: invoke `git diff` once

This commit is contained in:
Alexander Batischev 2019-10-13 21:14:52 +03:00 committed by Alex
parent f1fb375e02
commit b97fccb0af
1 changed files with 1 additions and 6 deletions

View File

@ -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