forked from gojek/darkroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (26 loc) · 753 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
38
APP=darkroom
APP_EXECUTABLE="./out/$(APP)"
all: test-ci
setup:
go get golang.org/x/lint/golint
go get github.com/mattn/goveralls
compile:
mkdir -p out
go build -o $(APP_EXECUTABLE) main.go
lint:
@golint ./... | { grep -vwE "exported (var|function|method|type|const) \S+ should have comment" || true; }
format:
go fmt ./...
vet:
go vet ./...
test:
go test ./... -covermode=count -coverprofile=profile.cov
coverage:
goveralls -coverprofile=profile.cov -service=travis-ci
copy-config:
cp config.example.yaml config.yaml
docker-image:
docker build -t ${USER}/darkroom:latest -f build/Dockerfile .
docker-docs:
docker build -t darkroom-docs:latest -f build/Dockerfile.docs .
test-ci: copy-config compile lint format vet test coverage