Skip to content

Commit 739f762

Browse files
committed
ci: test building with fuse
License: MIT Signed-off-by: Steven Allen <[email protected]>
1 parent 61a0d1a commit 739f762

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.circleci/config.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,28 @@ defaults: &defaults
3636
- image: circleci/golang:1.12
3737

3838
jobs:
39+
gobuild:
40+
<<: *defaults
41+
steps:
42+
- checkout
43+
- *make_out_dirs
44+
- *restore_gomod
45+
- run:
46+
command: make cmd/ipfs-try-build
47+
environment:
48+
TEST_NO_FUSE: 0
49+
- run:
50+
command: make cmd/ipfs-try-build
51+
environment:
52+
TEST_NO_FUSE: 1
53+
- *store_gomod
3954
gotest:
4055
<<: *defaults
4156
steps:
4257
- checkout
4358
- *make_out_dirs
4459
- *restore_gomod
4560

46-
- run: make cmd/ipfs-try-build
4761
- run: |
4862
make -j 1 test/unit/gotest.junit.xml \
4963
&& [[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]]
@@ -96,5 +110,6 @@ workflows:
96110
version: 2
97111
test:
98112
jobs:
113+
- gobuild
99114
- gotest
100115
- sharness

mk/golang.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ test_go_test: $$(DEPS_GO)
4646
$(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
4747
.PHONY: test_go_test
4848

49+
test_go_build: $$(TEST_GO_BUILD)
50+
4951
test_go_short: GOTFLAGS += -test.short
5052
test_go_short: test_go_test
5153
.PHONY: test_go_short
@@ -54,7 +56,7 @@ test_go_race: GOTFLAGS += -race
5456
test_go_race: test_go_test
5557
.PHONY: test_go_race
5658

57-
test_go_expensive: test_go_test $$(TEST_GO_BUILD)
59+
test_go_expensive: test_go_test test_go_build
5860
.PHONY: test_go_expensive
5961
TEST_GO += test_go_expensive
6062

0 commit comments

Comments
 (0)