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

View File

@@ -1,6 +1,11 @@
#!/bin/sh
set -ex
#!/bin/bash
./formatcode.sh
if ! ./CI/check-format.sh; then
exit 1
fi
set -ex
ccache -s || echo "CCache is not available."
mkdir build && cd build
cmake ..