From 6e196f3d22519deaa244c5ce3842b0158827a591 Mon Sep 17 00:00:00 2001 From: Elliot Chance Date: Sat, 3 Jun 2017 16:40:58 +1000 Subject: [PATCH] Still trying to fix coverage --- .gitignore | 1 + .travis.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index de8f91229..1b8b17bb5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /coverage.txt /c2go /.vscode +*.coverprofile diff --git a/.travis.yml b/.travis.yml index 5122c31fc..96983acc1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,7 +61,8 @@ 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 'go test -v -tags=integration -race -covermode count -coverprofile {{.Name}}.coverprofile -coverpkg $PKGS_DELIM {{.ImportPath}}' $PKGS | + xargs -I{} bash -c '{} >> /tmp/out.txt' if [ $? -ne 0 ]; then # Print out the failures (removing a lot of the noise). cat /tmp/out.txt | grep -v -- "--- PASS" | grep -v -- "=== RUN"