diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2019-05-06 04:35:01 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2019-05-06 04:35:23 +0300 |
commit | 5a42b8019934914074f233fd057f7f3253950b79 (patch) | |
tree | fd2e61c3dc065af5e1738f0cd1cb62095353a166 | |
parent | 2dddfaac48cf69e491427dcebab96b8ea9e25500 (diff) |
ci: Ignore binary files in style check
-rw-r--r-- | .gitlab-ci.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 461835a..43a8b93 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,9 +10,9 @@ style-check: - debian - amd64 script: - - git grep -n -P "\t|\r| $" -- . ':(exclude)*/compat/*' && exit 1 - - git grep -n -i "david" -- . ':(exclude)THANKS.md' ':(exclude).gitlab-ci.yml' && exit 1 - - for i in $(git ls-files -- . ':(exclude)*/compat/*'); do + - git grep -I -n -P "\t|\r| $" -- . ':(exclude)*/compat/*' && exit 1 + - git grep -I -n -i "david" -- . ':(exclude)THANKS.md' ':(exclude).gitlab-ci.yml' && exit 1 + - git grep -I -l -z "" -- . ':(exclude)*/compat/*' | while IFS= read -r -d '' i; do if [ -n "$(tail -c 1 "$i")" ]; then echo "No newline at end of $i"; exit 1; |