forked from Preskton/terraform-provider-netbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·35 lines (24 loc) · 797 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
31
32
33
34
35
build: test
gox -osarch="linux/amd64 windows/amd64 darwin/amd64" \
-output="pkg/{{.OS}}_{{.Arch}}/{{.OS}}-{{.Arch}}-terraform-provider-netbox" .
test:
go test -v $(shell go list ./... | grep -v /vendor/)
testacc:
TF_ACC=1 go test -v ./plugin/providers/netbox -run="TestAcc"
install: clean build
cp pkg/linux_amd64/linux-amd64-terraform-provider-netbox ~/.terraform.d/plugins/terraform-provider-netbox
tfplan: install
terraform init -upgrade && terraform plan
tfapply: install
terraform init -upgrade && terraform apply
tfapplydebug: install
TF_LOG=debug DEBUG=true terraform init -upgrade && terraform apply
release: release_bump release_build
release_bump:
scripts/release_bump.sh
release_build:
scripts/release_build.sh
deps:
dep ensure -vendor-only
clean:
rm -rf pkg/