File tree 6 files changed +11
-5
lines changed
6 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ install:
25
25
script :
26
26
- make lint
27
27
- make test-dockerized
28
+
29
+ after_success :
30
+ - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change @@ -58,4 +58,4 @@ COPY . .
58
58
59
59
RUN make install
60
60
61
- CMD ["make" , "test" ]
61
+ CMD ["make" , "test-cover " ]
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ test: ## runs all tests in project
36
36
@go test -v ./...
37
37
38
38
test-cover : # # runs all tests in project and report coverage
39
- @go test -cover -count=1 ./...
39
+ @go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
40
+ @mv coverage.txt shared
40
41
41
42
test-dockerized : # # runs the tests in a docker container against the Substrate Default Docker image
42
43
@docker-compose build
Original file line number Diff line number Diff line change 3
3
[ ![ License: GPL v3] ( https://img.shields.io/badge/License-GPLv3-blue.svg )] ( https://www.gnu.org/licenses/gpl-3.0 )
4
4
[ ![ GoDoc Reference] ( https://godoc.org/github.com/centrifuge/go-substrate-rpc-client?status.svg )] ( https://godoc.org/github.com/centrifuge/go-substrate-rpc-client )
5
5
[ ![ Build Status] ( https://travis-ci.com/centrifuge/go-substrate-rpc-client.svg?branch=master )] ( https://travis-ci.com/centrifuge/go-substrate-rpc-client )
6
+ [ ![ codecov] ( https://codecov.io/gh/centrifuge/go-substrate-rpc-client/branch/master/graph/badge.svg )] ( https://codecov.io/gh/centrifuge/go-substrate-rpc-client )
6
7
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/centrifuge/go-substrate-rpc-client )] ( https://goreportcard.com/report/github.com/centrifuge/go-substrate-rpc-client )
7
8
8
9
Substrate RPC client in Go. It provides APIs and types around Polkadot and any Substrate-based chain RPC calls.
Original file line number Diff line number Diff line change @@ -11,18 +11,18 @@ services:
11
11
- 9944
12
12
- 30333
13
13
networks :
14
- centchain -network :
14
+ gsrpc -network :
15
15
ipv4_address : 172.42.0.2
16
16
command : --dev --ws-external --rpc-external
17
17
rpc-client-tests :
18
18
build : .
19
19
networks :
20
- centchain -network :
20
+ gsrpc -network :
21
21
ipv4_address : 172.42.0.99
22
22
environment :
23
23
- RPC_URL=http://172.42.0.2:9933
24
24
networks :
25
- centchain -network :
25
+ gsrpc -network :
26
26
ipam :
27
27
driver : default
28
28
config :
Original file line number Diff line number Diff line change
1
+ coverage.txt
You can’t perform that action at this time.
0 commit comments