Skip to content

Commit

Permalink
Trying to fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Jun 3, 2017
1 parent 61ea8f9 commit aa41b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ script:
# covermode be set to "count" so that the coverage profiles can be merged
# correctly together with gocovmerge.
rm -f /tmp/out.txt
go list -f '{{if or (len .TestGoFiles) (len .XTestGoFiles)}}go test -v -tags=integration -race -covermode count -coverprofile {{.Name}}_{{len .Imports}}_{{len .Deps}}.coverprofile -coverpkg $PKGS_DELIM {{.ImportPath}}{{end}} >> /tmp/out.txt' $PKGS | xargs -I {} bash -c {}
go list -f "{{if or (len .TestGoFiles) (len .XTestGoFiles)}}go test -v -tags=integration -race -covermode count -coverprofile {{.Name}}_{{len .Imports}}_{{len .Deps}}.coverprofile -coverpkg $PKGS_DELIM {{.ImportPath}}{{end}} >> /tmp/out.txt" $PKGS | xargs -I {} bash -c {}
if [ $? -ne 0 ]; then
# Print out the failures (removing a lot of the noise).
cat /tmp/out.txt | grep -v -- "--- PASS" | grep -v -- "=== RUN"
Expand Down

0 comments on commit aa41b08

Please sign in to comment.