2021-04-24 14:36:34 -04:00
|
|
|
GOFILES=$(shell find ./ -type f -name '*.go')
|
2020-10-29 02:21:07 -04:00
|
|
|
|
2021-04-24 18:32:54 -04:00
|
|
|
mumble-discord-bridge: $(GOFILES) .goreleaser.yml
|
2021-01-09 18:18:31 -05:00
|
|
|
goreleaser build --skip-validate --rm-dist
|
|
|
|
|
2021-04-24 18:32:54 -04:00
|
|
|
dev: $(GOFILES) .goreleaser.yml
|
2021-01-09 18:18:31 -05:00
|
|
|
goreleaser build --skip-validate --rm-dist && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge
|
2020-10-30 01:38:01 -04:00
|
|
|
|
2021-04-24 18:32:54 -04:00
|
|
|
dev-race: $(GOFILES) .goreleaser.yml
|
|
|
|
go run -race ./cmd/mumble-discord-bridge
|
2021-04-07 01:24:17 -04:00
|
|
|
|
2021-04-24 18:32:54 -04:00
|
|
|
dev-profile: $(GOFILES) .goreleaser.yml
|
2021-01-16 14:06:58 -05:00
|
|
|
goreleaser build --skip-validate --rm-dist && sudo ./dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge -cpuprofile cpu.prof
|
|
|
|
|
2021-04-18 00:30:27 -04:00
|
|
|
test-chart: SHELL:=/bin/bash
|
|
|
|
test-chart:
|
2021-04-24 18:32:54 -04:00
|
|
|
go test ./test &
|
|
|
|
until pidof test.test; do continue; done;
|
2021-04-18 17:17:16 -04:00
|
|
|
psrecord --plot docs/test-cpu-memory.png $$(pidof mumble-discord-bridge.test)
|
2021-04-18 00:30:27 -04:00
|
|
|
|
2020-10-30 01:38:01 -04:00
|
|
|
docker-latest:
|
2020-11-04 01:12:43 -05:00
|
|
|
docker build -t stieneee/mumble-discord-bridge:latest .
|
2021-01-17 22:41:42 -05:00
|
|
|
|
2021-04-24 18:32:54 -04:00
|
|
|
docker-latest-run:
|
|
|
|
docker run --env-file .env -it stieneee/mumble-discord-bridge:latest
|
|
|
|
|
2021-01-17 22:41:42 -05:00
|
|
|
docker-next:
|
|
|
|
docker build -t stieneee/mumble-discord-bridge:next .
|
|
|
|
docker push stieneee/mumble-discord-bridge:next
|
2020-10-30 01:38:01 -04:00
|
|
|
|
|
|
|
clean:
|
2020-11-08 17:58:08 -05:00
|
|
|
rm -f mumble-discord-bridge
|
2020-10-30 01:38:01 -04:00
|
|
|
|
2021-01-17 22:41:42 -05:00
|
|
|
.PHONY: docker-latest docker-latest-push clean
|