forked from xelabs/go-jepsen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (37 loc) · 816 Bytes
/
Copy pathmakefile
File metadata and controls
44 lines (37 loc) · 816 Bytes
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
export GOPATH := $(shell pwd)
export PATH := $(GOPATH)/bin:$(PATH)
build:
@echo "--> go get..."
go get github.com/xelabs/go-mysqlstack/driver
@echo "--> Building..."
@mkdir -p bin/
go build -v -o bin/jepsen src/cli/jepsen.go
@chmod 755 bin/*
clean:
@echo "--> Cleaning..."
@go clean
@rm -f bin/*
fmt:
go fmt ./...
test:
@echo "--> Testing..."
@$(MAKE) testxworker
@$(MAKE) testxcommon
@$(MAKE) testsnapshot
testxworker:
go test -v xworker
testxcommon:
go test -v xworker
testsnapshot:
go test -v snapshot
# code coverage
COVPKGS = xcmd\
xworker\
xcommon\
snapshot
coverage:
go build -v -o bin/gotestcover \
src/vendor/github.com/pierrre/gotestcover/*.go;
gotestcover -coverprofile=coverage.out -v $(COVPKGS)
go tool cover -html=coverage.out
.PHONY: build clean fmt test coverage