1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-22 21:35:44 -05:00
mumble-discord-bridge/Makefile
2021-12-15 00:07:04 -05:00

38 lines
1.3 KiB
Makefile

GOFILES=$(shell find ./ -type f -name '*.go')
mumble-discord-bridge: $(GOFILES) .goreleaser.yml
goreleaser build --skip-validate --rm-dist --single-target --auto-snapshot
release:
go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./LICENSES"
goreleaser release --rm-dist
dev: $(GOFILES) .goreleaser.yml
goreleaser build --skip-validate --rm-dist --single-target --snapshot && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge
dev-race: $(GOFILES) .goreleaser.yml
go run -race ./cmd/mumble-discord-bridge
dev-profile: $(GOFILES) .goreleaser.yml
goreleaser build --skip-validate --rm-dist --single-target --snapshot && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge -cpuprofile cpu.prof
test-chart: SHELL:=/bin/bash
test-chart:
go test ./test &
until pidof test.test; do continue; done;
psrecord --plot docs/test-cpu-memory.png $$(pidof mumble-discord-bridge.test)
docker-latest:
docker build -t stieneee/mumble-discord-bridge:latest .
docker-latest-run:
docker run --env-file .env -it stieneee/mumble-discord-bridge:latest
docker-next:
docker build -t stieneee/mumble-discord-bridge:next .
docker push stieneee/mumble-discord-bridge:next
clean:
rm -f mumble-discord-bridge
.PHONY: release docker-latest docker-latest-push clean