File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
src/github.com/cloudfoundry-incubator Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ files:
2424 - github.com/cloudfoundry-incubator/tcp-emitter/cmd/tcp-emitter/*.go # gosub
2525 - github.com/cloudfoundry-incubator/tcp-emitter/cmd/tcp-emitter/testrunner/*.go # gosub
2626 - github.com/cloudfoundry-incubator/tcp-emitter/config/*.go # gosub
27+ - github.com/cloudfoundry-incubator/tcp-emitter/emitter/*.go # gosub
2728 - github.com/cloudfoundry-incubator/tcp-emitter/routing_table/*.go # gosub
29+ - github.com/cloudfoundry-incubator/tcp-emitter/routing_table/schema/*.go # gosub
30+ - github.com/cloudfoundry-incubator/tcp-emitter/routing_table/schema/endpoint/*.go # gosub
31+ - github.com/cloudfoundry-incubator/tcp-emitter/routing_table/schema/event/*.go # gosub
32+ - github.com/cloudfoundry-incubator/tcp-emitter/routing_table/util/*.go # gosub
2833 - github.com/cloudfoundry-incubator/tcp-emitter/syncer/*.go # gosub
2934 - github.com/cloudfoundry-incubator/tcp-emitter/watcher/*.go # gosub
3035 - github.com/cloudfoundry-incubator/trace-logger/*.go # gosub
Original file line number Diff line number Diff line change @@ -6,6 +6,18 @@ bin_dir=$(dirname $0)/../bin
66
77tmpdir=$( mktemp -d /tmp/cf-routing-downloads.XXXX)
88
9+ run_go_vet () {
10+ for component in " $@ "
11+ do
12+ pushd $component
13+ for file in $( find . -name " *.go" -not -iname " *test.go" )
14+ do
15+ go tool vet -v -all -shadow=true $file
16+ done
17+ popd
18+ done
19+ }
20+
921if uname -a | grep Darwin; then os=darwin; else os=linux; fi
1022curl -L -o ${tmpdir} /consul-0.6.3.zip " https://releases.hashicorp.com/consul/0.6.3/consul_0.6.3_${os} _amd64.zip"
1123unzip -o ${tmpdir} /consul-0.6.3.zip -d ./${bin_dir}
@@ -23,6 +35,8 @@ if [ -n "$PACKAGE" ]; then
2335 ginkgo -r -p " $@ " " ./src/${PACKAGE} "
2436else
2537 pushd src/github.com/cloudfoundry-incubator/
38+ run_go_vet tcp-emitter
39+
2640 ginkgo -r -keepGoing -p -trace -randomizeAllSpecs -progress \
2741 uaa-go-client routing-api routing-api-cli cf-tcp-router tcp-emitter " $@ "
2842 popd
You can’t perform that action at this time.
0 commit comments