This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
default : vet test build | ||
default: test | ||
|
||
.PHONY: build | ||
build: | ||
go build | ||
.PHONY: package | ||
package: | ||
./scripts/package.sh | ||
|
||
.PHONY: vet | ||
vet: | ||
go vet ./... | ||
|
||
.PHONY: test | ||
.PHONY: vet | ||
test: | ||
go test -v ./... | ||
|
||
.PHONY: release | ||
release: | ||
@curl -sL http://git.io/goreleaser | bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
BINARY="terraform-provider-alienvault_${TRAVIS_TAG}" | ||
GO111MODULE=on | ||
|
||
GOOS=darwin GOARCH=amd64 go build -o "${BINARY}" | ||
zip "${BINARY}_darwin_amd64.zip" "${BINARY}" | ||
rm -f "${BINARY}" | ||
|
||
GOOS=linux GOARCH=amd64 go build -o "${BINARY}" | ||
zip "${BINARY}_linux_amd64.zip" "${BINARY}" | ||
rm -f "${BINARY}" | ||
|
||
GOOS=windows GOARCH=amd64 go build -o "${BINARY}" | ||
zip "${BINARY}_windows_amd64.zip" "${BINARY}" | ||
rm -f "${BINARY}" |