2019-04-05 09:54:40 +03:00
|
|
|
|
2019-04-05 09:54:40 +03:00
|
|
|
|
|
|
|
test:
|
2019-04-05 11:30:06 +03:00
|
|
|
go test -race -coverprofile=coverage.txt -covermode=atomic
|
2019-04-05 09:54:40 +03:00
|
|
|
|
2019-04-05 09:54:40 +03:00
|
|
|
build-cli: clean
|
|
|
|
-mkdir -p ./cli/build
|
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o ./cli/build/enumer.linux-amd64 .
|
|
|
|
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -o ./cli/build/enumer.darwin-amd64 .
|
2021-07-22 09:41:59 +03:00
|
|
|
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -a -o ./cli/build/enumer.darwin-arm64 .
|
2019-04-05 09:54:40 +03:00
|
|
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -a -o ./cli/build/enumer.windows-amd64.exe .
|
|
|
|
cd ./cli/build && find . -name 'enumer*' | xargs -I{} tar czf {}.tar.gz {}
|
|
|
|
cd ./cli/build && shasum -a 256 * > sha256sum.txt
|
|
|
|
cat ./cli/build/sha256sum.txt
|
|
|
|
|
|
|
|
|
|
|
|
# example: make release V=0.0.0
|
|
|
|
release:
|
|
|
|
git tag v$(V)
|
|
|
|
@read -p "Press enter to confirm and push to origin ..." && git push origin v$(V)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -r ./cli/build
|
2019-04-05 09:54:40 +03:00
|
|
|
|
|
|
|
SHELL = /bin/bash
|