Files
drone-jsonnet-generator/scripts/codecov-test.sh
Suzuki Shunsuke e98c3135cd ci: add build and ci tools
* Drone
* golangci-lint
* goreleaser
* commitlint
* scripts
* README, CONTRIBUTING
2019-06-12 09:57:25 +09:00

13 lines
338 B
Bash

#!/usr/bin/env bash
# https://github.com/codecov/example-go#caveat-multiple-files
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor | grep -v dummy); do
go test -race -coverprofile=profile.out -covermode=atomic $d || exit 1
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done