File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 20
20
21
21
.PHONY : test
22
22
test :
23
- GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo
23
+ GO111MODULE=off go get github.com/onsi/ginkgo/v2/ ginkgo
24
24
GO111MODULE=off go get github.com/onsi/gomega/...
25
- ginkgo -race - r -flakeAttempts 3 ./...
25
+ ginkgo -r -flake-attempts 3 ./...
26
26
27
27
.PHONY : coverage
28
28
coverage :
43
43
GO111MODULE=off go get golang.org/x/lint/golint
44
44
GO111MODULE=off go get github.com/mitchellh/gox
45
45
GO111MODULE=off go get golang.org/x/tools/cmd/cover
46
- GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo
46
+ GO111MODULE=on go get github.com/onsi/ginkgo/v2 /ginkgo
47
47
GO111MODULE=off go get github.com/onsi/gomega/...
48
+ ginkgo version
48
49
49
50
.PHONY : build
50
51
build :
Original file line number Diff line number Diff line change @@ -23,11 +23,9 @@ coveragetxt="coverage.txt"
23
23
24
24
25
25
generate_cover_data () {
26
- ginkgo -flakeAttempts=3 -race -failFast -cover -r .
27
- echo " " > ${coveragetxt}
28
- find . -type f -name " *.coverprofile" | while read -r file; do cat " $file " >> ${coveragetxt} && mv " $file " " ${coverdir} " ; done
29
- echo " mode: $covermode " > " $profile "
30
- grep -h -v " ^mode:" " $coverdir " /* .coverprofile >> " $profile "
26
+ ginkgo -flake-attempts=3 -fail-fast -cover -r --covermode=atomic .
27
+ cp coverprofile.out " $profile "
28
+ mv coverprofile.out ${coveragetxt}
31
29
}
32
30
33
31
push_to_coveralls () {
You can’t perform that action at this time.
0 commit comments