From aa41b08dcd9c80b1d5ccabf1cfe64e19da59735d Mon Sep 17 00:00:00 2001 From: Elliot Chance Date: Sat, 3 Jun 2017 15:10:10 +1000 Subject: [PATCH] Trying to fix coverage --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 28a0abbdf..5122c31fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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"