mirror of https://github.com/certusone/wasmd.git
Merge PR #14: Various buildsystem fixes
This commit is contained in:
parent
5211e90900
commit
5350d3b01b
10
Makefile
10
Makefile
|
@ -4,7 +4,6 @@ PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
|
|||
VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
|
||||
COMMIT := $(shell git log -1 --format='%H')
|
||||
LEDGER_ENABLED ?= true
|
||||
GOBIN ?= $(GOPATH)/bin
|
||||
|
||||
export GO111MODULE = on
|
||||
|
||||
|
@ -116,12 +115,14 @@ distclean: clean
|
|||
### Testing
|
||||
|
||||
|
||||
check: check-unit
|
||||
check: check-unit check-build
|
||||
check-all: check check-race check-cover
|
||||
|
||||
check-unit:
|
||||
@VERSION=$(VERSION) go test -mod=readonly -race -tags='ledger test_ledger_mock' ./...
|
||||
@VERSION=$(VERSION) go test -mod=readonly -tags='ledger test_ledger_mock' ./...
|
||||
|
||||
check-race:
|
||||
@VERSION=$(VERSION) go test -mod=readonly -tags='ledger test_ledger_mock' -race ./...
|
||||
@VERSION=$(VERSION) go test -mod=readonly -race -tags='ledger test_ledger_mock' ./...
|
||||
|
||||
check-cover:
|
||||
@go test -mod=readonly -timeout 30m -race -coverprofile=coverage.txt -covermode=atomic -tags='ledger test_ledger_mock' ./...
|
||||
|
@ -129,7 +130,6 @@ check-cover:
|
|||
check-build: build
|
||||
@go test -mod=readonly -p 4 `go list ./cli_test/...` -tags=cli_test
|
||||
|
||||
check-all: check-unit check-race check-cover check-build
|
||||
|
||||
lint: ci-lint
|
||||
ci-lint:
|
||||
|
|
|
@ -88,7 +88,7 @@ func NewFixtures(t *testing.T) *Fixtures {
|
|||
|
||||
buildDir := os.Getenv("BUILDDIR")
|
||||
if buildDir == "" {
|
||||
buildDir, err = filepath.Abs("../../../build/")
|
||||
buildDir, err = filepath.Abs("../build/")
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue