test: do not run 'goword' tests in CI

release-2.3
Gyu-Ho Lee 2017-02-14 23:22:44 -08:00
parent 756992d30f
commit 316adb4bcc
No known key found for this signature in database
GPG Key ID: 1DDD39C7EB70C24C
2 changed files with 0 additions and 22 deletions

View File

@ -8,15 +8,5 @@ notifications:
on_success: never
on_failure: never
addons:
apt:
packages:
- libpcap-dev
- libaspell-dev
- libhunspell-dev
before_install:
- go get -v github.com/chzchzchz/goword
script:
- ./test

12
test
View File

@ -89,18 +89,6 @@ function fmt_tests {
fi
done
echo "Checking goword..."
# get all go files to process
gofiles=`find $FMT -iname '*.go' 2>/dev/null`
# ignore tests and protobuf files
gofiles=`echo ${gofiles} | sort | uniq | sed "s/ /\n/g" | egrep -v "(\\_test.go|\\.pb\\.go)"`
# only check for broken exported godocs
gowordRes=`goword -use-spell=false ${gofiles} | grep godoc-export | sort`
if [ ! -z "$gowordRes" ]; then
echo -e "goword checking failed:\n${gowordRes}"
exit 255
fi
echo "Checking for license header..."
licRes=$(for file in $(find . -type f -iname '*.go' ! -path './Godeps/*'); do
head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo -e " ${file}"