File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ proto:
1818vet : proto
1919 go vet
2020
21- test : vet
21+ swagger :
22+ go install github.com/swaggo/swag/cmd/swag@latest
23+ PATH=${PATH} :~ /go/bin swag init
24+
25+ test : vet swagger
2226 go test -race -cover -coverprofile=${COVERAGE_FILE_NAME} ./...
2327 cat ${COVERAGE_FILE_NAME} | grep -v _mock.go | grep -v logging.go | grep -v .pb.go > ${COVERAGE_FILE_NAME} .tmp
2428 mv -f ${COVERAGE_FILE_NAME} .tmp ${COVERAGE_FILE_NAME}
2529 go tool cover -func=${COVERAGE_FILE_NAME} | grep -Po ' ^total\:\h+\(statements\)\h+\K.+(?=\.\d+%)' > ${COVERAGE_TMP_FILE_NAME}
2630 ./scripts/cover.sh
2731 rm -f ${COVERAGE_TMP_FILE_NAME}
2832
29- swagger :
30- go install github.com/swaggo/swag/cmd/swag@latest
31- PATH=${PATH} :~ /go/bin swag init
32-
3333build : proto swagger
3434 GOOS=linux go build -o ${BINARY_FILE_NAME} main.go
3535 chmod ugo+x ${BINARY_FILE_NAME}
You can’t perform that action at this time.
0 commit comments