Make test options and cleanup afterwards
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
|
||||
.vscode
|
||||
dist
|
||||
terraform-provider-unifi
|
||||
|
||||
21
Makefile
Normal file
21
Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user