CI: allow different versions of clang-format
This commit is contained in:
parent
97e44f971d
commit
d220fcea24
@ -9,7 +9,13 @@
|
||||
set -e
|
||||
|
||||
AS=$( which astyle )
|
||||
CF=$( which clang-format-7 )
|
||||
|
||||
for _cf in clang-format-7 clang-format-8 clang-format70 clang-format80
|
||||
do
|
||||
# Not an error if this particular clang-format isn't found
|
||||
CF=$( which $_cf || true )
|
||||
test -n "$CF" && break
|
||||
done
|
||||
|
||||
test -n "$AS" || { echo "! No astyle found in PATH"; exit 1 ; }
|
||||
test -n "$CF" || { echo "! No clang-format-7 found in PATH"; exit 1 ; }
|
||||
|
Loading…
Reference in New Issue
Block a user