File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
HOSTNAME =github.com
2
2
NAMESPACE =iterative
3
3
NAME =iterative
4
- VERSION =0.6
5
- # OS_ARCH=linux_amd64
6
- OS_ARCH =darwin_amd64
4
+ VERSION =0.0.0+development
5
+ OS_ARCH =${shell go env GOOS}_${shell go env GOARCH}
7
6
BINARY =terraform-provider-${NAME}
7
+ INSTALL_PATH =~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
8
8
9
9
default : install
10
10
11
11
build :
12
- go build -o ${BINARY}
12
+ go build
13
13
14
- install : build
15
- mkdir -p ~ /.terraform.d/plugins/${HOSTNAME} /${NAMESPACE} /${NAME} /${VERSION} /${OS_ARCH}
16
- mv ${BINARY} ~ /.terraform.d/plugins/${HOSTNAME} /${NAMESPACE} /${NAME} /${VERSION} /${OS_ARCH}
14
+ install :
15
+ GOBIN=${INSTALL_PATH} go install
17
16
18
17
test :
19
- go test ./... $( TESTARGS ) -timeout=30s -parallel=4
18
+ go test ./... ${ TESTARGS} -timeout=30s -parallel=4
20
19
21
20
testacc :
22
- TF_ACC=1 go test ./... -v $( TESTARGS ) -timeout 120m
21
+ TF_ACC=1 go test ./... -v ${ TESTARGS} -timeout 120m
You can’t perform that action at this time.
0 commit comments