mirror of https://github.com/procxx/kepka.git
Travis build: invoke `git diff` once
This commit is contained in:
parent
f1fb375e02
commit
b97fccb0af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue