Skip to content

Commit

Permalink
fix coverage script (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuce authored Nov 8, 2021
1 parent d16ef9a commit 61a5260
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 3 deletions.
5 changes: 2 additions & 3 deletions coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@
#

MEMBER_COUNT=3
TEST_FLAGS="-v -count 1 -tags=hazelcastinternal -timeout 20m"
PACKAGES=$(go list ./... | grep -v org-website | grep -v /internal/it | grep -v /benchmarks | grep -v /stress_tests | grep -v /soak_tests | grep -v /examples | grep -v /cmd)
env MEMBER_COUNT=${MEMBER_COUNT} go test ${TEST_FLAGS} -count=1 -coverpkg $(${PACKAGES} | tr "\n" ",") -coverprofile=coverage.out ${PACKAGES}
TEST_FLAGS=
env MEMBER_COUNT=${MEMBER_COUNT} go test ${TEST_FLAGS} -count=1 -coverpkg "$(go list ./... | grep -v /internal/it | grep -v /benchmarks | grep -v /stress_tests | grep -v /soak_tests | grep -v /examples | grep -v /cmd | tr "\n" ",")" -coverprofile=coverage.out ./...
2 changes: 2 additions & 0 deletions examples/org-website/custom_serializer_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/list_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/map_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/portable_serializable_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/query_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/queue_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/replicated_map_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/set_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions examples/org-website/topic_sample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down

0 comments on commit 61a5260

Please sign in to comment.