CI: remove redundant C linter check (!694)

This commit is contained in:
Bart Ribbers 2019-10-22 23:13:12 +02:00 committed by Oliver Smith
parent b87c9240e2
commit 310d7314cb
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 0 additions and 31 deletions

View file

@ -40,15 +40,6 @@ py-sh-static:
script:
- .gitlab-ci/static_code_analysis.sh
# coding style check
clang-format-static:
stage: first
<<: *only-default
before_script:
- apk -q add clang git
script:
- .gitlab-ci/static_clang-format.sh
# aports checks (generic)
aports-static:
stage: first

View file

@ -1,22 +0,0 @@
#!/bin/sh
set -e
clang-format -i $(find . -name "*.c")
git diff > differences.patch
if [ -s differences.patch ]; then
echo "C-Code formatting check failed!"
echo "Please make sure, the code is formatted properly!"
echo "Run:"
echo ' clang-format -i $(find . -name "*.c")'
echo
cat differences.patch
echo
rm differences.patch
exit 1
else
echo "C-Code formatting check is sucessful!"
exit 0
fi