test: ignore vendor/ directory on license check

This commit is contained in:
Anthony Romano 2016-03-22 17:21:05 -07:00
parent fb3510b276
commit 45cf31650c

2
test
View File

@ -102,7 +102,7 @@ function fmt_tests {
fi
echo "Checking for license header..."
licRes=$(for file in $(find . -type f -iname '*.go' ! -path './Godeps/*'); do
licRes=$(for file in $(find . -type f -iname '*.go' ! -path './vendor/*'); do
head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo -e " ${file}"
done;)
if [ -n "${licRes}" ]; then