-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
38 lines (30 loc) · 1.12 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
build:
CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/mangosql ./cmd/mangosql
format:
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run --fix ./...
lint:
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run ./...
docs:
npm run docs:dev
generate:
go mod download
go generate ./tests/...
generate_docs:
go run ./cmd/mangosql/ diagram --output ./docs/public/blog.svg ./tests/diagram/blog.sql
go run ./cmd/mangosql/ diagram --output ./docs/public/blog_dark.svg -s -d -t "My wonderful Blog" -m "Version: 1.0.2" ./tests/diagram/blog.sql
go run ./cmd/mangosql/ diagram --output ./docs/public/blog_simple.svg -s -t "" ./tests/diagram/blog.sql
bench:
CGO_ENABLED=0 go test -bench=. -benchmem ./tests/bench | tee bench.log
go run ./cmd/bench/
test:
go test -race ./...
go test --cover --coverprofile=coverage.txt ./tests/queries/...
go tool cover -html=coverage.txt -o coverage.html
gocover-cobertura < coverage.txt > coverage.xml
update:
devenv update
go get -u ./...
go mod tidy
npm update