Skip to content

Commit d5ca297

Browse files
committed
init
1 parent 4f61f20 commit d5ca297

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ proto:
1818
vet: 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-
3333
build: proto swagger
3434
GOOS=linux go build -o ${BINARY_FILE_NAME} main.go
3535
chmod ugo+x ${BINARY_FILE_NAME}

0 commit comments

Comments
 (0)