neoneo-go/Makefile

29 lines
446 B
Makefile
Raw Normal View History

2018-02-01 18:54:23 +00:00
BRANCH = "master"
VERSION = $(shell cat ./VERSION)
SEEDS ?= "127.0.0.1:20333"
PORT ?= "3000"
2018-02-01 18:54:23 +00:00
2018-02-01 18:06:17 +00:00
build:
@go build -o ./bin/neo-go ./cli/main.go
2018-02-01 18:54:23 +00:00
check-version:
git fetch && (! git rev-list ${VERSION})
2018-02-01 18:06:17 +00:00
deps:
2018-02-24 07:23:02 +00:00
@dep ensure
2018-02-01 18:06:17 +00:00
2018-02-01 18:54:23 +00:00
push-tag:
git checkout ${BRANCH}
git pull origin ${BRANCH}
git tag ${VERSION}
git push origin ${BRANCH} --tags
run: build
./bin/neo-go node -seed ${SEEDS} -tcp ${PORT}
2018-02-01 17:40:04 +00:00
test:
2018-02-24 07:23:02 +00:00
@go test ./... -cover
2018-02-01 18:54:23 +00:00
vet:
@go vet ./...