forked from tobgu/qframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 769 Bytes
/
Makefile
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
generate:
# Build and install generator binary first
go generate github.com/tobgu/qframe/... || true
go install github.com/tobgu/qframe/cmd/qfgenerate
go generate github.com/tobgu/qframe/...
test: generate
go test ./...
lint:
~/go/bin/golangci-lint run ./...
ci: test lint
fmt: generate
go fmt ./...
vet: generate
go vet ./...
cov: generate
go test github.com/tobgu/qframe/... -coverprofile=coverage.out -coverpkg=all
go tool cover -html=coverage.out
deps:
go get -t ./...
dev-deps: deps
go install github.com/mauricelam/genny@latest
mkdir -p ~/go/bin
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b ~/go/bin v1.55.2
qplot_examples:
cd contrib/gonum/qplot/examples \
&& go run temperatures.go