aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-12-08 16:10:29 +0100
committerJakob Borg <jakob@nym.se>2014-12-08 16:12:53 +0100
commit0c9f1efc75e81e3c1b97fea53e5285e6800e17e9 (patch)
tree5171650f97d326f6081ca6210f7c7f842c0f912e /build.sh
parent665b4506e77638a582d5b962838f660ffb44cc88 (diff)
downloadsyncthing-0c9f1efc75e81e3c1b97fea53e5285e6800e17e9.tar.gz
syncthing-0c9f1efc75e81e3c1b97fea53e5285e6800e17e9.zip
Run vet and lint during build
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index b3f4fddc4..3cb8f721b 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,7 @@
set -euo pipefail
IFS=$'\n\t'
-DOCKERIMGV=1.4-1
+DOCKERIMGV=1.4-2
case "${1:-default}" in
default)
@@ -113,7 +113,11 @@ case "${1:-default}" in
-v $(pwd):/go/src/github.com/syncthing/syncthing \
-w /go/src/github.com/syncthing/syncthing \
syncthing/build:$DOCKERIMGV \
- sh -c './build.sh clean && ./build.sh all && STTRACE=all ./build.sh test-cov'
+ sh -c './build.sh clean \
+ && go vet ./cmd/... ./internal/... \
+ && ( golint ./cmd/... ; golint ./internal/... ) | egrep -v "comment on exported|should have comment" \
+ && ./build.sh all \
+ && STTRACE=all ./build.sh test-cov'
;;
docker-test)