570c162c13
Add the `goreleaser` tool to the repository to handle building and publishing the application. Add a simple configuration file to build the application for all major OS versions. Update the Makefile to include commands to build release and snapshot versions of the tool. Add a placeholder CHANGELOG file to be included in the package files.
22 lines
447 B
Makefile
22 lines
447 B
Makefile
install-deps:
|
|
go mod download
|
|
|
|
# Standard go test
|
|
test:
|
|
go test ./... -v -race
|
|
|
|
# Make sure no unnecessary dependencies are present
|
|
go-mod-tidy:
|
|
go mod tidy -v
|
|
git diff-index --quiet HEAD
|
|
|
|
format:
|
|
go fmt $(go list ./... | grep -v /vendor/)
|
|
go vet $(go list ./... | grep -v /vendor/)
|
|
|
|
build/snapshot:
|
|
./tools/goreleaser_linux_amd64 --snapshot --rm-dist --skip-publish
|
|
|
|
build/release:
|
|
./tools/goreleaser_linux_amd64 --rm-dist --skip-publish
|