forked from labd/terraform-provider-commercetools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 780 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
26
27
28
29
30
build:
go build
format:
go fmt ./...
test:
go test -v ./...
update-sdk:
GO111MODULE=on go get github.com/labd/commercetools-go-sdk
GO111MODULE=on go mod vendor
GO111MODULE=on go mod tidy
coverage-html:
go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
go tool cover -html=coverage.txt
coverage:
go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
go tool cover -func=coverage.txt
testacc:
TF_ACC=1 go test -v ./...
testacct:
TF_ACC=1 go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -v ./...
mockacc:
TF_ACC=1 CTP_AUTH_URL=http://localhost:8989 CTP_PROJECT_KEY=unittest CTP_API_URL=http://localhost:8989 CTP_CLIENT_ID=unittest CTP_CLIENT_SECRET=x go test -count=1 -v ./...