2018-02-01 18:54:23 +00:00
|
|
|
BRANCH = "master"
|
2018-03-15 20:45:37 +00:00
|
|
|
BUILD_TIME = "$(shell date -u +\"%Y-%m-%dT%H:%M:%SZ\")"
|
2018-02-01 18:54:23 +00:00
|
|
|
VERSION = $(shell cat ./VERSION)
|
2018-03-15 20:45:37 +00:00
|
|
|
NETMODE ?= "privnet"
|
2018-02-01 18:54:23 +00:00
|
|
|
|
2018-02-01 18:06:17 +00:00
|
|
|
build:
|
2018-03-30 06:15:03 +00:00
|
|
|
@go build -ldflags "-X github.com/CityOfZion/neo-go/config.Version=${VERSION}-dev -X github.com/CityOfZion/neo-go/config.BuildTime=${BUILD_TIME}" -o ./bin/neo-go ./cli/main.go
|
2018-02-01 18:06:17 +00:00
|
|
|
|
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}
|
2018-03-15 20:45:37 +00:00
|
|
|
git push origin ${VERSION}
|
2018-02-01 18:54:23 +00:00
|
|
|
|
2018-03-03 07:16:05 +00:00
|
|
|
run: build
|
2018-04-13 10:14:08 +00:00
|
|
|
./bin/neo-go node -config-path ./config -${NETMODE}
|
2018-03-03 07:16:05 +00:00
|
|
|
|
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:
|
2018-03-03 07:16:05 +00:00
|
|
|
@go vet ./...
|