fix broken build script (it relies on make tools)

also removed `sudo` from `bash scripts/dish.sh` - I was able to build
dist on MacOS without it. Do we need it?
This commit is contained in:
Anton Kaliaev 2017-06-02 19:06:48 +03:00
parent 016d7e55f0
commit 1f345358e6
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
2 changed files with 13 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.swp
vendor
merkleeyes.db
build

View File

@ -1,6 +1,9 @@
all: test install
GOTOOLS = \
github.com/mitchellh/gox \
github.com/Masterminds/glide
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
NOVENDOR = go list ./... | grep -v /vendor/
all: test install
build:
go build ./cmd/...
@ -9,11 +12,11 @@ install:
go install ./cmd/...
dist:
@ sudo bash scripts/dist.sh
@ bash scripts/publish.sh
@bash scripts/dist.sh
@bash scripts/publish.sh
test:
go test `${NOVENDOR}`
go test $(PACKAGES)
#go run tests/tendermint/*.go
get_deps:
@ -22,14 +25,16 @@ get_deps:
update_deps:
go get -d -u ./...
get_vendor_deps:
go get github.com/Masterminds/glide
get_vendor_deps: tools
glide install
build-docker:
docker run -it --rm -v "$(PWD):/go/src/github.com/tendermint/basecoin" -w "/go/src/github.com/tendermint/basecoin" -e "CGO_ENABLED=0" golang:alpine go build ./cmd/basecoin
docker build -t "tendermint/basecoin" .
tools:
go get -u -v $(GOTOOLS)
clean:
@rm -f ./basecoin