
- Lint build runs scripts in ci directory. - Test build runs go test kkn.fi/vanity - Test build is only run if Lint succeeds - Run all stages (Lint & Test) with Go 1.9 git-svn-id: file:///srv/svn/repo/toyohime/trunk@73 922d331f-388e-da47-97a9-ad700dc0b8b9
14 lines
251 B
Bash
Executable File
14 lines
251 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# $pkg is relative path to package
|
|
pkg=kkn.fi/vanity
|
|
importPath=kkn.fi/vanity
|
|
relativePkg="${pkg/$importPath/.}"
|
|
|
|
output=`gofmt -s -l $relativePkg`
|
|
if [ "$output" != "" ]; then
|
|
echo "validate-gofmt.sh: error $pkg" 1>&2
|
|
exit 1
|
|
fi
|
|
exit 0
|