CI: Run clang format on linux and osx CI and fail if changes are made

This commit is contained in:
Colin Edwards
2019-07-08 20:50:59 -05:00
parent 4ec072075d
commit 28243dbc94
6 changed files with 67 additions and 4 deletions

11
CI/check-format.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
dirty=$(git ls-files --modified)
set +x
if [[ $dirty ]]; then
echo "================================="
echo "Files were not formatted properly"
echo "$dirty"
echo "================================="
exit 1
fi