forked from brightcove/playback_ddbsync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (30 loc) · 821 Bytes
/
Makefile
File metadata and controls
31 lines (30 loc) · 821 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
GO15VENDOREXPERIMENT := 1
COVERAGEDIR = coverage
ifdef CIRCLE_ARTIFACTS
COVERAGEDIR = $(CIRCLE_ARTIFACTS)
endif
all: build test cover
install-deps:
glide install
build:
if [ ! -d bin ]; then mkdir bin; fi
go build -v -o bin/ddbsync
fmt:
go fmt ./...
test:
if [ ! -d coverage ]; then mkdir coverage; fi
go test -v ./ -race -cover -coverprofile=$(COVERAGEDIR)/ddbsync.coverprofile
cover:
go tool cover -html=$(COVERAGEDIR)/ddbsync.coverprofile -o $(COVERAGEDIR)/ddbsync.html
tc: test cover
coveralls:
gover $(COVERAGEDIR) $(COVERAGEDIR)/coveralls.coverprofile
goveralls -coverprofile=$(COVERAGEDIR)/coveralls.coverprofile -service=circle-ci -repotoken=$(COVERALLS_TOKEN)
clean:
go clean
rm -f bin/ddbsync
rm -rf coverage/
gen-mocks:
mockery -name AWSDynamoer
mockery -name DBer
mockery -name LockServicer