-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (22 loc) · 844 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
gen:
@go generate -v ./...
mod:
@go mod tidy && go mod vendor
lint: ## Run lint
@./scripts/lint.sh
run:
@go run ./cmd/services/core/...
build:
@go build -tags=jsoniter -o ./build/core ./cmd/services/core/...
test:
@./scripts/test.sh
print:
@echo $(call args,defaultstring)
migration:
@migrate create -ext sql -dir databases/mysql/migrations -seq $(name)
migrateup:
@migrate -source file://databases/mysql/migrations -database "mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_HOST}:${MYSQL_PORT})/${MYSQL_DATABASE}?parseTime=true&charset=utf8mb4" up
migratedown:
@migrate -source file://databases/mysql/migrations -database "mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_HOST}:${MYSQL_PORT})/${MYSQL_DATABASE}?parseTime=true&charset=utf8mb4" down 1
install-devtools:
@go get -u github.com/jstemmer/go-junit-report