We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0016999 commit 24d8fbdCopy full SHA for 24d8fbd
.travis.yml
@@ -7,7 +7,7 @@ before_install:
7
- go get -t -v ./...
8
9
script:
10
- - go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
+ - ./go.test.sh
11
12
after_success:
13
- bash <(curl -s https://codecov.io/bash)
go.test.sh
@@ -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
+ go test -race -coverprofile=profile.out -covermode=atomic "$d"
+ if [ -f profile.out ]; then
+ cat profile.out >> coverage.txt
+ rm profile.out
+ fi
+done
0 commit comments