Skip to content

Commit c0c6293

Browse files
authored
Merge pull request #279 from alexander-ding/chore/makefile
Modify Makefile to compile integration test
2 parents 2ae32e6 + 37ce886 commit c0c6293

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
all: test
1+
all: build test
22

33
# include release tools for building binary and testing targets
44
include release-tools/build.make
@@ -8,7 +8,7 @@ GOPATH ?= $(shell go env GOPATH)
88
REPO_ROOT = $(CURDIR)
99
BUILD_DIR = bin
1010
BUILD_TOOLS_DIR = $(BUILD_DIR)/tools
11-
GO_ENV_VARS = GO111MODULE=on GOOS=windows
11+
GO_ENV_VARS = GO111MODULE=on GOOS=windows GOARCH=amd64
1212

1313
# see https://github.com/golangci/golangci-lint/releases
1414
GOLANGCI_LINT_VERSION = v1.21.0
@@ -19,6 +19,10 @@ lint: $(GOLANGCI_LINT)
1919
$(GO_ENV_VARS) $(GOLANGCI_LINT) run
2020
git --no-pager diff --exit-code
2121

22+
.PHONY: build
23+
build:
24+
${GO_ENV_VARS} go test -c ./integrationtests -o ./bin/integrationtests.test.exe
25+
2226
.PHONY: test-go
2327
test: test-go
2428
test-go:

0 commit comments

Comments
 (0)