Skip to content

Commit

Permalink
More verbose CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
theohax committed Sep 16, 2021
1 parent 2d03ca2 commit 25b6089
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/detect-clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

CLANG_FORMAT="clang-format"
CLANG_FORMAT="clang-format-12"
CLANG_FORMAT_VERSION="12"

if ! [ $(builtin type -p "$CLANG_FORMAT") ]; then
Expand All @@ -12,6 +12,7 @@ fi

VERSION_OUTPUT=$($CLANG_FORMAT --version)
if ! [[ $VERSION_OUTPUT =~ ^(.)*clang-format\ version\ $CLANG_FORMAT_VERSION(.)*$ ]]; then
echo "Your '$CLANG_FORMAT' version is not '$CLANG_FORMAT_VERSION'. Please up/down grade it."
echo "Your '$CLANG_FORMAT' version is not '$CLANG_FORMAT_VERSION', but '$VERSION_OUTPUT'." \
"Please up/down grade it."
exit 1
fi

0 comments on commit 25b6089

Please sign in to comment.