aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2015-04-28 22:32:10 +0200
committerJakob Borg <jakob@nym.se>2015-04-29 10:38:02 +0200
commit60fcaebfdb8d8a4ce6ff7fb2aada6226ce5e9964 (patch)
tree356ab8d5a23dc7224edf0055ef1406e95d8f0ed3 /build.sh
parent3932884688613a6661e5789fff7e3f6e6bd06afc (diff)
downloadsyncthing-60fcaebfdb8d8a4ce6ff7fb2aada6226ce5e9964.tar.gz
syncthing-60fcaebfdb8d8a4ce6ff7fb2aada6226ce5e9964.zip
Run vet and lint. Make us lint clean.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh21
1 files changed, 19 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index b3c42c87b..58f49d359 100755
--- a/build.sh
+++ b/build.sh
@@ -118,8 +118,6 @@ case "${1:-default}" in
-e "STTRACE=$STTRACE" \
syncthing/build:latest \
sh -c './build.sh clean \
- && go tool vet -composites=false cmd/*/*.go internal/*/*.go \
- && ( golint ./cmd/... ; golint ./internal/... ) | egrep -v "comment on exported|should have comment" \
&& ./build.sh all \
&& STTRACE=all ./build.sh test-cov'
;;
@@ -138,6 +136,25 @@ case "${1:-default}" in
&& git clean -fxd .'
;;
+ docker-lint)
+ docker run --rm -h syncthing-builder -u $(id -u) -t \
+ -v $(pwd):/go/src/github.com/syncthing/syncthing \
+ -w /go/src/github.com/syncthing/syncthing \
+ -e "STTRACE=$STTRACE" \
+ syncthing/build:latest \
+ sh -euxc 'go run build.go lint'
+ ;;
+
+
+ docker-vet)
+ docker run --rm -h syncthing-builder -u $(id -u) -t \
+ -v $(pwd):/go/src/github.com/syncthing/syncthing \
+ -w /go/src/github.com/syncthing/syncthing \
+ -e "STTRACE=$STTRACE" \
+ syncthing/build:latest \
+ sh -euxc 'go run build.go vet'
+ ;;
+
*)
echo "Unknown build command $1"
;;