Run the docs in CI again

This commit is contained in:
Patrick Niklaus
2017-04-28 14:43:00 +00:00
committed by Patrick Niklaus
parent 2cf6010665
commit 1aea10010b
3 changed files with 27 additions and 15 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
MSG="The following files have been modified:"
dirty=$(git ls-files --modified)
if [[ $dirty ]]; then
echo $MSG
echo $dirty
exit 1
else
exit 0
fi
-11
View File
@@ -36,14 +36,3 @@ fi
find src include unit_tests example -type f -name '*.hpp' -o -name '*.cpp' \
| xargs -I{} -P ${NPROC} ${CLANG_FORMAT} -i -style=file {}
dirty=$(git ls-files --modified)
if [[ $dirty ]]; then
echo "The following files do not adhere to the .clang-format style file:"
echo $dirty
exit 1
else
exit 0
fi