-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
29 lines (23 loc) · 793 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
# Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
test:
GO_TESTING=1 go test -timeout=60m -mod=vendor --cover -covermode=count -coverprofile=coverage.out ./...
build:
bash ./scripts/build.sh admin
bash ./scripts/build.sh user
bash ./scripts/build.sh resource
bash ./scripts/build.sh message_queue
bash ./scripts/build.sh scheduled
bash ./scripts/build.sh customer_service
echo "Build Success!"
clean:
bash ./scripts/clean.sh
# deploy app via s4 see detail in https://github.com/axetroy/s4
deploy:
s4
generate-static:
pkger -include /internal/service/area/external -o ./internal/service/area/external_pkged
pkger -include /internal/app/customer_service/views -o ./internal/app/customer_service/views_pkged
lint:
golangci-lint run ./... -v
format:
go fmt ./...