ci: test building with fuse
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Apr 18, 2019 at 17:53 UTC
739f762b224f5c4ceddd0a7625e8ab5d145e710c
2 files changed
+19
-2
.circleci/config.yml
+16
-1
@@ -36,6 +36,21 @@ defaults: &defaults
36
- image: circleci/golang:1.12
37
38
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
54
gotest:
55
<<: *defaults
56
steps:
@@ -43,7 +58,6 @@ jobs:
58
- *make_out_dirs
59
- *restore_gomod
60
46
- - run: make cmd/ipfs-try-build
61
- run: |
62
make -j 1 test/unit/gotest.junit.xml \
63
&& [[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]]
@@ -96,5 +110,6 @@ workflows:
110
version: 2
111
test:
112
jobs:
113
+ - gobuild
114
- gotest
115
- sharness
mk/golang.mk
+3
-1
@@ -46,6 +46,8 @@ test_go_test: $$(DEPS_GO)
46
$(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
47
.PHONY: test_go_test
48
49
+test_go_build: $$(TEST_GO_BUILD)
50
+
51
test_go_short: GOTFLAGS += -test.short
52
test_go_short: test_go_test
53
.PHONY: test_go_short
@@ -54,7 +56,7 @@ test_go_race: GOTFLAGS += -race
56
test_go_race: test_go_test
57
.PHONY: test_go_race
58
57
-test_go_expensive: test_go_test $$(TEST_GO_BUILD)
59
+test_go_expensive: test_go_test test_go_build
60
.PHONY: test_go_expensive
61
TEST_GO += test_go_expensive
62