-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (30 loc) · 847 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
# Shell to use with Make
SHELL := /bin/bash
# Export targets not associated with files.
.PHONY: pkg deps fmt test citest clean protobuf
# Use godep to collect dependencies.
deps:
@echo "Fetching dependencies"
-godep restore
# Format the Go source code
fmt:
@echo "Formatting the source"
-gofmt -w .
# Target for simple testing on the command line
test:
ginkgo -r -v
# Target for testing in continuous integration
citest:
ginkgo -r -v --randomizeAllSpecs --randomizeSuites --failOnPending --cover --trace --race --compilers=2
# Clean build files
clean:
@echo "Cleaning up the project source."
-go clean
-find . -name "*.coverprofile" -print0 | xargs -0 rm -rf
-rm -rf site
-rm -rf _bin
-rm -rf _build
# Compile protocol buffers
protobuf:
@echo "Compiling protocol buffers"
@protoc -I rpc/ rpc/*.proto --go_out=plugins=grpc:rpc