fix cannot use test profile flag with multiple packages

pull/200/head
q191201771 6 years ago
parent ca7433e0c3
commit f52241d795

1
.gitignore vendored

@ -9,6 +9,5 @@
/lal
/lal_linux
/build_linux.sh
/test.sh
/util/crudetimer.go

@ -8,7 +8,7 @@ before_install:
- go get -t -v ./...
script:
- go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- ./test.sh
after_success:
- bash <(curl -s https://codecov.io/bash)

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
Loading…
Cancel
Save