Make test options and cleanup afterwards

This commit is contained in:
ziporah
2020-03-03 22:08:03 +01:00
parent fc397f9992
commit 6a943411e6
2 changed files with 22 additions and 0 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
.vscode
dist
terraform-provider-unifi

21
Makefile Normal file
View File

@@ -0,0 +1,21 @@
NAME=terraform-provider-unifi
PLUGIN_PATH=$(HOME)/.terraform.d/plugins
all: build
build:
go build -o $(NAME)
install: build
install -d $(PLUGIN_PATH)
install -m 775 $(NAME) $(PLUGIN_PATH)/
test: install
./controller.sh update
./controller.sh start
./controller.sh test
./controller.sh stop
./controller.sh reset