-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 1.68 KB
/
Makefile
File metadata and controls
39 lines (28 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: test test-no-cache test-stores test-stores-no-cache test-integration-all test-integration-all-no-cache test-integration-stores test-integration-stores-no-cache test-integration-postgres test-integration-postgres-no-cache
GO ?= go
GOTOOLCHAIN ?= local
INTEGRATION_TAG ?= integration
MOD_MODE ?= mod
TEST_TIMEOUT ?= 30m
TEST_FLAGS ?=
GO_ENV ?= env -u GOROOT GOTOOLCHAIN=$(GOTOOLCHAIN)
test:
$(GO_ENV) $(GO) test -mod=$(MOD_MODE) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./...
test-no-cache:
$(GO_ENV) $(GO) test -count=1 -mod=$(MOD_MODE) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./...
test-stores:
$(GO_ENV) $(GO) test -mod=$(MOD_MODE) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./stores/...
test-stores-no-cache:
$(GO_ENV) $(GO) test -count=1 -mod=$(MOD_MODE) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./stores/...
test-integration-all:
$(GO_ENV) $(GO) test -mod=$(MOD_MODE) -tags=$(INTEGRATION_TAG) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./...
test-integration-all-no-cache:
$(GO_ENV) $(GO) test -count=1 -mod=$(MOD_MODE) -tags=$(INTEGRATION_TAG) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./...
test-integration-stores:
$(GO_ENV) $(GO) test -mod=$(MOD_MODE) -tags=$(INTEGRATION_TAG) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./stores/...
test-integration-stores-no-cache:
$(GO_ENV) $(GO) test -count=1 -mod=$(MOD_MODE) -tags=$(INTEGRATION_TAG) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./stores/...
test-integration-postgres:
$(GO_ENV) $(GO) test -mod=$(MOD_MODE) -tags=$(INTEGRATION_TAG) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./stores/postgres
test-integration-postgres-no-cache:
$(GO_ENV) $(GO) test -count=1 -mod=$(MOD_MODE) -tags=$(INTEGRATION_TAG) -timeout=$(TEST_TIMEOUT) $(TEST_FLAGS) ./stores/postgres