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>
Steven Allen committed
Dec 7, 2017 at 13:43 UTC
f3ad2c95bdcac987bfe2485fde72d63a2f0f4104
2 files changed
+3
-2
cmd/ipfs/Rules.mk
+1
-1
@@ -2,7 +2,7 @@ include mk/header.mk
2
IPFS_BIN_$(d) := $(call go-curr-pkg-tgt)
3
4
TGT_BIN += $(IPFS_BIN_$(d))
5
-TEST += $(d)-try-build
5
+TEST_GO_BUILD += $(d)-try-build
6
CLEAN += $(IPFS_BIN_$(d))
7
8
PATH := $(realpath $(d)):$(PATH)
mk/golang.mk
+2
-1
@@ -9,6 +9,7 @@ GOTFLAGS ?=
9
10
DEPS_GO :=
11
TEST_GO :=
12
+TEST_GO_BUILD :=
13
CHECK_GO :=
14
15
go-pkg-name=$(shell $(GOCC) list $(go-tags) github.com/ipfs/go-ipfs/$(1))
@@ -35,7 +36,7 @@ test_go_race: GOTFLAGS += -race
36
test_go_race: test_go_expensive
37
.PHONY: test_go_race
38
38
-test_go_expensive: $$(DEPS_GO)
39
+test_go_expensive: $$(TEST_GO_BUILD) $$(DEPS_GO)
40
$(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
41
.PHONY: test_go_expensive
42
TEST_GO += test_go_expensive