Adjust test scripts
This commit is contained in:
parent
8f8ade727c
commit
395db88a60
@ -4,7 +4,8 @@ VERSION ?= devel
|
|||||||
GITCOMMIT = $(shell cd /src && git describe --always --dirty)
|
GITCOMMIT = $(shell cd /src && git describe --always --dirty)
|
||||||
BUILDTIME = $(shell date --iso-8601=seconds)
|
BUILDTIME = $(shell date --iso-8601=seconds)
|
||||||
LDFLAGS := -X github.com/trezor/blockbook/common.version=$(VERSION) -X github.com/trezor/blockbook/common.gitcommit=$(GITCOMMIT) -X github.com/trezor/blockbook/common.buildtime=$(BUILDTIME)
|
LDFLAGS := -X github.com/trezor/blockbook/common.version=$(VERSION) -X github.com/trezor/blockbook/common.gitcommit=$(GITCOMMIT) -X github.com/trezor/blockbook/common.buildtime=$(BUILDTIME)
|
||||||
BLOCKBOOK_SRC := $(GOPATH)/src/github.com/trezor/blockbook
|
BLOCKBOOK_BASE := $(GOPATH)/src/github.com/trezor
|
||||||
|
BLOCKBOOK_SRC := $(BLOCKBOOK_BASE)/blockbook
|
||||||
ARGS ?=
|
ARGS ?=
|
||||||
|
|
||||||
all: build tools
|
all: build tools
|
||||||
@ -35,6 +36,7 @@ test-all: prepare-sources generate-data
|
|||||||
prepare-sources:
|
prepare-sources:
|
||||||
@ [ -n "`ls /src 2> /dev/null`" ] || (echo "/src doesn't exist or is empty" 1>&2 && exit 1)
|
@ [ -n "`ls /src 2> /dev/null`" ] || (echo "/src doesn't exist or is empty" 1>&2 && exit 1)
|
||||||
rm -rf $(BLOCKBOOK_SRC)
|
rm -rf $(BLOCKBOOK_SRC)
|
||||||
|
mkdir -p $(BLOCKBOOK_BASE)
|
||||||
cp -r /src $(BLOCKBOOK_SRC)
|
cp -r /src $(BLOCKBOOK_SRC)
|
||||||
$(MAKE) prepare-vendor
|
$(MAKE) prepare-vendor
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user