Skip to content

Commit

Permalink
Merge pull request #16 from stormqueen1990/chore/add-local-build
Browse files Browse the repository at this point in the history
chore: add targets to build and clean provider locally
  • Loading branch information
stormqueen1990 authored Jan 29, 2024
2 parents 8e040c0 + 9de4c17 commit 099c8c6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ website/vendor

# Keep windows files with windows line endings
*.winfile eol=crlf

# Generated binary
terraform-provider-imagetest
6 changes: 0 additions & 6 deletions GNUmakefile

This file was deleted.

13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
default: testacc

# Run acceptance tests
.PHONY: testacc
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m

terraform-provider-imagetest:
CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=devel -X main.commit=$(shell git rev-parse --short HEAD)" .

.PHONY: clean
clean:
rm terraform-provider-imagetest

0 comments on commit 099c8c6

Please sign in to comment.