fix bugs
This commit is contained in:
parent
176ea763c4
commit
8201c92544
4
Makefile
4
Makefile
|
@ -188,8 +188,8 @@ test_cover:
|
||||||
@export VERSION=$(VERSION); bash tests/test_cover.sh
|
@export VERSION=$(VERSION); bash tests/test_cover.sh
|
||||||
|
|
||||||
test_lint:
|
test_lint:
|
||||||
gometalinter.v2 --config=tools/gometalinter.json ./...
|
gometalinter --config=tools/gometalinter.json ./...
|
||||||
!(gometalinter.v2 --exclude /usr/lib/go/src/ --exclude client/lcd/statik/statik.go --exclude 'vendor/*' --disable-all --enable='errcheck' --vendor ./... | grep -v "client/")
|
!(gometalinter --exclude /usr/lib/go/src/ --exclude client/lcd/statik/statik.go --exclude 'vendor/*' --disable-all --enable='errcheck' --vendor ./... | grep -v "client/")
|
||||||
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" | xargs gofmt -d -s
|
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" | xargs gofmt -d -s
|
||||||
dep status >> /dev/null
|
dep status >> /dev/null
|
||||||
!(grep -n branch Gopkg.toml)
|
!(grep -n branch Gopkg.toml)
|
||||||
|
|
|
@ -5,11 +5,9 @@ set -e
|
||||||
# specific git hash.
|
# specific git hash.
|
||||||
#
|
#
|
||||||
# repos it installs:
|
# repos it installs:
|
||||||
# github.com/mitchellh/gox
|
|
||||||
# github.com/golang/dep/cmd/dep
|
# github.com/golang/dep/cmd/dep
|
||||||
# gopkg.in/alecthomas/gometalinter.v2
|
# gopkg.in/alecthomas/gometalinter.v2
|
||||||
# github.com/gogo/protobuf/protoc-gen-gogo
|
# github.com/rakyll/statiik
|
||||||
# github.com/square/certstrap
|
|
||||||
|
|
||||||
## check if GOPATH is set
|
## check if GOPATH is set
|
||||||
if [ -z ${GOPATH+x} ]; then
|
if [ -z ${GOPATH+x} ]; then
|
||||||
|
|
Loading…
Reference in New Issue