forked from exoscale/terraform-provider-exoscale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (19 loc) · 777 Bytes
/
Makefile
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
include go.mk/init.mk
include go.mk/public.mk
PACKAGE := github.com/exoscale/terraform-provider-exoscale
PROJECT_URL = https://$(PACKAGE)
GO_LD_FLAGS := -ldflags "-s -w -X $(PACKAGE)/version.Version=${VERSION} \
-X $(PACKAGE)/version.Commit=${GIT_REVISION}"
GO_BIN_OUTPUT_NAME = terraform-provider-exoscale_v$(VERSION)
EXTRA_ARGS := -parallel=3 -count=1 -failfast
.PHONY: test-acc test-verbose test
test: GO_TEST_EXTRA_ARGS=${EXTRA_ARGS}
test-verbose: GO_TEST_EXTRA_ARGS+=$(EXTRA_ARGS)
test-acc: GO_TEST_EXTRA_ARGS=-v $(EXTRA_ARGS)
test-acc: ## Runs acceptance tests (requires valid Exoscale API credentials)
TF_ACC=1 $(GO) test \
-race \
-timeout=60m \
-tags=testacc \
$(GO_TEST_EXTRA_ARGS) \
$(GO_TEST_PKGS)