ref: abb972a5d33fe74df78b6d43104f407afa1a2718
parent: 91568b2a57de65aad9f9f73fcc8cb71fdc507e9b
author: Henrik Gramner <[email protected]>
date: Thu Mar 28 13:39:21 EDT 2019
CI: Check for newline at end of file
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,12 @@
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
+ if [ -n "$(tail -c 1 "$i")" ]; then
+ echo "No newline at end of $i";
+ exit 1;
+ fi;
+ done
- git remote rm upstream 2> /dev/null || true
- git remote add upstream https://code.videolan.org/videolan/dav1d.git
- git fetch -q upstream master