mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 21:05:30 +02:00
18 lines
418 B
Makefile
18 lines
418 B
Makefile
# Go parameters
|
|
GOCMD = go
|
|
GOTEST = $(GOCMD) test
|
|
WASIRUN_WRAPPER := $(CURDIR)/scripts/wasirun-wrapper
|
|
|
|
.PHONY: test
|
|
test:
|
|
$(GOTEST) -race ./...
|
|
|
|
test-coverage:
|
|
echo "" > $(COVERAGE_REPORT); \
|
|
$(GOTEST) -coverprofile=$(COVERAGE_REPORT) -coverpkg=./... -covermode=$(COVERAGE_MODE) ./...
|
|
|
|
.PHONY: wasitest
|
|
wasitest: export GOARCH=wasm
|
|
wasitest: export GOOS=wasip1
|
|
wasitest:
|
|
$(GOTEST) -exec $(WASIRUN_WRAPPER) ./...
|