mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 10:18:04 +08:00
run os builds as a part of the test_go_* targets
We were doing this as part of the `test` target but we don't run that on CI (or at least not on Travis). License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
bf30549370
commit
f3ad2c95bd
@ -2,7 +2,7 @@ include mk/header.mk
|
||||
IPFS_BIN_$(d) := $(call go-curr-pkg-tgt)
|
||||
|
||||
TGT_BIN += $(IPFS_BIN_$(d))
|
||||
TEST += $(d)-try-build
|
||||
TEST_GO_BUILD += $(d)-try-build
|
||||
CLEAN += $(IPFS_BIN_$(d))
|
||||
|
||||
PATH := $(realpath $(d)):$(PATH)
|
||||
|
||||
@ -9,6 +9,7 @@ GOTFLAGS ?=
|
||||
|
||||
DEPS_GO :=
|
||||
TEST_GO :=
|
||||
TEST_GO_BUILD :=
|
||||
CHECK_GO :=
|
||||
|
||||
go-pkg-name=$(shell $(GOCC) list $(go-tags) github.com/ipfs/go-ipfs/$(1))
|
||||
@ -35,7 +36,7 @@ test_go_race: GOTFLAGS += -race
|
||||
test_go_race: test_go_expensive
|
||||
.PHONY: test_go_race
|
||||
|
||||
test_go_expensive: $$(DEPS_GO)
|
||||
test_go_expensive: $$(TEST_GO_BUILD) $$(DEPS_GO)
|
||||
$(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
|
||||
.PHONY: test_go_expensive
|
||||
TEST_GO += test_go_expensive
|
||||
|
||||
Loading…
Reference in New Issue
Block a user