Commit 442a56d9 authored by Ma_124's avatar Ma_124

listing source files in ci

parent 0f4d3986
Pipeline #46732471 passed with stages
in 2 minutes and 4 seconds
......@@ -17,6 +17,7 @@ test:
stage: test
coverage: '/coverage: \d+\.\d+% of statements/'
script:
- 'go list ./... | grep -v /vendor/ | { while IFS="" read -r pkg || [[ -n "$pkg" ]]; do ls -1 $GOPATH/src/$pkg/*.go | { while IFS="" read -r file || [[ -n "$file" ]]; do echo "${file#$"$GOPATH/src/"}"; done } done }'
- go fmt $(go list ./... | grep -v /vendor/)
- go test -race -cover -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v /vendor/)
- bash <(curl -s https://codecov.io/bash) | sed -E 's/token=[A-Fa-f0-9\-]+/token=[codecov token]/g' | sed -e "s/$CODECOV_TOKEN/[codecov token]/g"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment