-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 755 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
wire:
wire ./application
swagger:
swag init -d ./internal/pkg/server -g server.go -o ./api
generate: wire swagger
migrate-up:
go run cmd/migrate/main.go up
migrate-down:
go run cmd/migrate/main.go down
# make migrate-create name=?
migrate-create:
go run cmd/migrate/main.go create $(name)
test-unit:
go test ./... -cover
test-e2e:
docker-compose down --remove-orphans
docker-compose -f docker-compose.test.yml up --exit-code-from=app-test --build
docker-test-up-db:
docker-compose -f docker-compose.test.yml up mysql
run-server:
go run cmd/server/main.go
docker-up-all:
docker-compose down --remove-orphans
docker-compose up --build
docker-up-db-cache:
docker-compose down --remove-orphans
docker-compose up --build mysql redis