-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 801 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 801 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
.PHONY: build
# Define the PATH variable
PATH := $(PATH):$(shell go env GOPATH)/bin
lint:
golangci-lint run ./...
dep:
go mod tidy
build:
go build -o build/dunebot main.go
test:
@go clean -testcache
@go test -count 3 -v -failfast -cover -coverprofile coverage.txt.tmp -race ./...
@echo
@cat coverage.txt.tmp | grep -v .pb.go > coverage.txt
rm coverage.txt.tmp
@go tool cover -func coverage.txt
run: build
@env $$(cat .env) ./build/dunebot app
build-image: gen
docker build -t dunebot .
up:
teller env | envtor | docker-compose -f - up -d --build
down:
teller env | envtor | docker-compose -f - down
run-dispatch: build
teller run -- ./build/dunebot dispatch --dry
run-app: build
teller run -- ./build/dunebot app
run-token: build
teller run -- ./build/dunebot token service