From 739f762b224f5c4ceddd0a7625e8ab5d145e710c Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 18 Apr 2019 17:53:18 -0700 Subject: [PATCH] ci: test building with fuse License: MIT Signed-off-by: Steven Allen --- .circleci/config.yml | 17 ++++++++++++++++- mk/golang.mk | 4 +++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a09195a7..6e427bd23 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,6 +36,21 @@ defaults: &defaults - image: circleci/golang:1.12 jobs: + gobuild: + <<: *defaults + steps: + - checkout + - *make_out_dirs + - *restore_gomod + - run: + command: make cmd/ipfs-try-build + environment: + TEST_NO_FUSE: 0 + - run: + command: make cmd/ipfs-try-build + environment: + TEST_NO_FUSE: 1 + - *store_gomod gotest: <<: *defaults steps: @@ -43,7 +58,6 @@ jobs: - *make_out_dirs - *restore_gomod - - run: make cmd/ipfs-try-build - run: | make -j 1 test/unit/gotest.junit.xml \ && [[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]] @@ -96,5 +110,6 @@ workflows: version: 2 test: jobs: + - gobuild - gotest - sharness diff --git a/mk/golang.mk b/mk/golang.mk index 683757c0b..e229023cd 100644 --- a/mk/golang.mk +++ b/mk/golang.mk @@ -46,6 +46,8 @@ test_go_test: $$(DEPS_GO) $(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./... .PHONY: test_go_test +test_go_build: $$(TEST_GO_BUILD) + test_go_short: GOTFLAGS += -test.short test_go_short: test_go_test .PHONY: test_go_short @@ -54,7 +56,7 @@ test_go_race: GOTFLAGS += -race test_go_race: test_go_test .PHONY: test_go_race -test_go_expensive: test_go_test $$(TEST_GO_BUILD) +test_go_expensive: test_go_test test_go_build .PHONY: test_go_expensive TEST_GO += test_go_expensive