-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (36 loc) · 907 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
36
37
all: clean deps build
build:
go fmt ./...
go build ./...
go build
install: build
go install
docker-static-linux: clean deps build
CGO_ENABLED=0 go install -a -ldflags '-s'
test:
go test ./...
test-report: report-dir
go test ./... -v | go-junit-report > reports/tests.xml
deps:
go get -d -t
imports:
go get -v $(go list -f '{{range .Imports}}{{ . }} {{end}}')
tools:
go get github.com/jstemmer/go-junit-report
go get github.com/golang/lint/golint
go get github.com/ryancox/gobench2plot
clean:
rm -rf reports/ ./asrt
bench:
go test ./... -bench=.
bench-report: report-dir
go test ./... -bench=. -benchmem | gobench2plot > reports/benchmarks.xml
check: report-dir
golint ./... > reports/lint.txt
go vet ./... 2> reports/vet.txt
report-dir:
mkdir -p reports
js:
cd www && npm install ./
cd www && ./node_modules/gulp/bin/gulp.js deploy
ci: deps tools test-report cover bench-report check