aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..42a333d
--- /dev/null
+++ b/justfile
@@ -0,0 +1,12 @@
+TEMPDIR := `mktemp -d`
+
+build:
+ CGO=0 go build -o bumpver
+
+install:
+ install bumpver $HOME/.local/bin
+
+test:
+ golangci-lint run
+ go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./...
+ go tool cover -func={{ TEMPDIR }}/testcover.out