Fix travis, remove go.test.sh
This commit is contained in:
parent
f46c5f8a28
commit
9963a85494
|
@ -8,7 +8,7 @@ before_install:
|
|||
- go get -u -t ./...
|
||||
|
||||
script:
|
||||
- ./go.test.sh
|
||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
12
go.test.sh
12
go.test.sh
|
@ -1,12 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
echo "" > coverage.txt
|
||||
|
||||
for d in $(go list ./... | grep -v vendor); do
|
||||
go test -count 20 -v -race -coverprofile=profile.out -covermode=atomic $d
|
||||
if [ -f profile.out ]; then
|
||||
cat profile.out >> coverage.txt
|
||||
rm profile.out
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue