GO_IS_STUPID_EXE= ifeq '$(OS)' 'Windows_NT' GO_IS_STUPID_EXE=.exe endif build: build_bot go build . build_bot: go build -o bot.exe .\tools\cmd\bot\bot.go site: go tool super-saiyan-god test: site go test zedshaw.games/webapp/tests -c -o runtests$(GO_IS_STUPID_EXE) ./runtests$(GO_IS_STUPID_EXE) test_only: go test zedshaw.games/webapp/tests -c -o runtests$(GO_IS_STUPID_EXE) ./runtests$(GO_IS_STUPID_EXE) -test.run TestGamePage migrate_up: go tool goose sqlite3 db.sqlite3 -dir migrations up migrate_down: go tool goose sqlite3 db.sqlite3 -dir migrations down docs: go tool pkgsite --open dev: go tool air -build.stop_on_error "true" coverage: go build -cover -o webapp mkdir -p .coverage echo "GOCOVERDIR=.coverage ./webapp" cover_report: go tool covdata textfmt -i=.coverage -o coverage.txt go tool cover -func=coverage.txt go tool cover -html=coverage.txt -o coverage.html open coverage.html twitch_mock: go tool twitch-cli mock-api start -p 8081