-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 935 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 935 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
develop:
cp config/config.example.json config/config.json
cp docker-compose.example.yml docker-compose.yml
dev_dependencies:
go get -v -u honnef.co/go/tools/cmd/megacheck
go get -v -u golang.org/x/lint/golint
go get -v -u github.com/golang/dep/cmd/dep && dep ensure -vendor-only -v
dependencies:
go get -v -u github.com/golang/dep/cmd/dep && dep ensure -vendor-only -v
lint:
go fmt ./...
go vet ./...
megacheck $$(go list ./...)
golint $$(go list ./...)
test_dev:
# Run entire test suite with caching enabled for repeat tests
go test -p=1 -cover ./...
test_and_lint:
go fmt ./...
go vet ./...
megacheck $$(go list ./...)
golint $$(go list ./...)
# Verbose test with coverage, race condition checks and cache disabled
go test -p=1 -count=1 -v -race -coverprofile=coverage.txt -covermode=atomic ./...
build:
CGO_ENABLED=0 GOOS=linux go build -v -a -installsuffix cgo -ldflags '-s' -o dennis-bot ./cmd/dennis-bot