Browse Source

ci: Allow setting clang-format binary

pull/15/merge
Colin Kinloch 3 years ago
parent
commit
5d36d4b143
  1. 2
      .ci/scripts/format/script.sh

2
.ci/scripts/format/script.sh

@ -10,7 +10,7 @@ if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dis
fi fi
# Default clang-format points to default 3.5 version one # Default clang-format points to default 3.5 version one
CLANG_FORMAT=clang-format-12
CLANG_FORMAT=${CLANG_FORMAT:-clang-format-12}
$CLANG_FORMAT --version $CLANG_FORMAT --version
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then

Loading…
Cancel
Save