Run the docs in CI again
This commit is contained in:
committed by
Patrick Niklaus
parent
2cf6010665
commit
1aea10010b
Executable
+16
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user