-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
68 lines (51 loc) · 1.33 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
all: install
clean:
go clean ./...
doc:
godoc -http=:6060
proto:
protoc --go_out=. dal/*.proto
install:
go get github.com/Sirupsen/logrus
go get github.com/boltdb/bolt
go get github.com/golang/protobuf/proto
go get github.com/golang/protobuf/protoc-gen-go
go get github.com/spf13/viper
go get github.com/spf13/cobra
go get github.com/psilva261/timsort
go get github.com/satori/go.uuid
go get github.com/labstack/echo
go get github.com/rs/cors
go get github.com/jteeuwen/go-bindata/...
go get github.com/Workiva/go-datastructures/...
test-install: install
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
go get github.com/stretchr/testify/assert
build-install: install test-install
go get github.com/mitchellh/gox
# Build the binary assets.
assets:
go-bindata -o testutil/bindata.go -pkg testutil \
-ignore \\.sw[a-z] -ignore \\.DS_Store assets/
test:
go test -cover ./...
test-travis:
./test-cover.sh
bench:
go test -run=none -bench=. -benchmem ./...
build:
go build -o $(GOPATH)/bin/origins ./cmd/origins
# Build and tag binaries for each OS and architecture.
build-all: build
mkdir -p bin
gox -output="bin/origins-{{.OS}}.{{.Arch}}" \
-os="linux windows darwin" \
-arch="amd64" \
./cmd/origins > /dev/null
fmt:
go vet ./...
go fmt ./...
lint:
golint ./...
.PHONY: test proto assets