-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Taskfile.yml
62 lines (52 loc) · 1.77 KB
/
Taskfile.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3'
tasks:
build-local:
cmds:
- go build -o terraform-provider-{{ .NAME }}_{{ .VERSION }}
- mkdir -p ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/
- mv terraform-provider-{{ .NAME }}_{{ .VERSION }} ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-{{ .NAME }}_v{{ .VERSION }}
- cmd: codesign --deep --force -s - ~/.terraform.d/plugins/registry.terraform.io/labd/{{ .NAME }}/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-{{ .NAME }}_v{{ .VERSION }}
platforms: [darwin]
vars:
VERSION: 99.0.0
NAME: commercetools
PLATFORM:
sh: echo "$(go env GOOS)_$(go env GOARCH)"
build:
env:
GORELEASER_CURRENT_TAG: "v0.0.0"
cmd: goreleaser build --snapshot --clean --single-target --output mach-composer
format:
cmds:
- go fmt ./...
test:
cmds:
- go test -v ./...
docs:
cmds:
- go generate
coverage-html:
cmds:
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
- go tool cover -html=coverage.txt
coverage:
cmds:
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
- go tool cover -func=coverage.txt
testacc:
cmds:
- TF_ACC=1 go test -v ./...
testacct:
cmds:
- TF_ACC=1 go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -v ./...
mockacc:
cmds:
- go test -count=1 -v ./...
env:
TF_ACC: 1
CTP_CLIENT_ID: unittest
CTP_CLIENT_SECRET: x
CTP_PROJECT_KEY: unittest
CTP_SCOPES: manage_project:projectkey
CTP_API_URL: http://localhost:8989
CTP_AUTH_URL: http://localhost:8989