aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--justfile11
1 files changed, 9 insertions, 2 deletions
diff --git a/justfile b/justfile
index db5bd05..8f30dbd 100644
--- a/justfile
+++ b/justfile
@@ -1,12 +1,19 @@
TEMPDIR := `mktemp -d`
+alias dr := debug-run
+alias dt := debug-test
build:
CGO=0 go build -o go-git-server cmd/main.go
+run:
+ go run cmd/main.go -s {{justfile_directory()}}/gitserver.yaml -r $(mktemp -d)
+
test:
golangci-lint run
go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./...
go tool cover -func={{ TEMPDIR }}/testcover.out
+debug-run:
+ dlv debug cmd/main.go -- -s {{justfile_directory()}}/gitserver.yaml -r $(mktemp -d)
-debug-test:
- dlv test -- -test.v
+debug-test pkg:
+ dlv test {{pkg}} -- -test.v