Skip to content

Commit 24d8fbd

Browse files
committed
update travis
1 parent 0016999 commit 24d8fbd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ before_install:
77
- go get -t -v ./...
88

99
script:
10-
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
10+
- ./go.test.sh
1111

1212
after_success:
1313
- bash <(curl -s https://codecov.io/bash)

go.test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
echo "" > coverage.txt
5+
6+
for d in $(go list ./... | grep -v vendor); do
7+
go test -race -coverprofile=profile.out -covermode=atomic "$d"
8+
if [ -f profile.out ]; then
9+
cat profile.out >> coverage.txt
10+
rm profile.out
11+
fi
12+
done

0 commit comments

Comments
 (0)