-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (33 loc) · 890 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
39
40
41
42
43
44
45
46
47
48
build:
docker build -t leagueify .
build-dev:
docker build --target dev -t leagueify-dev .
clean: stop
docker compose -f docker-compose.prod.yml down -v
clean-dev: stop-dev
docker compose -f docker-compose.dev.yml down -v
format:
go fmt ./...
init:
go get ./...
prep: format tidy vet
start: build
docker compose -f docker-compose.prod.yml up
start-detached: build
docker compose -f docker-compose.prod.yml up -d
start-dev: build-dev
docker compose -f docker-compose.dev.yml up
start-dev-detached: build-dev
docker compose -f docker-compose.dev.yml up -d
stop:
docker compose -f docker-compose.prod.yml down
stop-dev:
docker compose -f docker-compose.dev.yml down
test:
mkdir -p testCoverage
go test ./... -cover -coverprofile=testCoverage/report.out
go tool cover -html=testCoverage/report.out -o testCoverage/report.html
tidy:
go mod tidy
vet:
go vet ./...