-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMakefile
27 lines (21 loc) · 767 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
## build: build the application (for current GOOS/GOARCH) and place the built app in the dist folder
build:
goreleaser build --single-target --snapshot --rm-dist
## start: start container
start:
docker-compose up -d
## run-dev: runs the application in dev mode
run-dev:
go run ./cmd/larry/. -t golang -x 1 --safe-mode
## test: runs tests
test:
go test -v ./... --cover
## compile: compiles the application for multiple environments and place the output under the dist folder
compile:
goreleaser release --snapshot --rm-dist
lint:
docker run --rm -v $(CURDIR):/app -w /app golangci/golangci-lint:v1.46.2 golangci-lint run
## help: prints this help message
help:
@echo "Usage: \n"
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'