This repository was archived by the owner on Apr 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +25
-2
lines changed
Expand file tree Collapse file tree 5 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1+ # Copyright SecureKey Technologies Inc. All Rights Reserved.
2+ #
3+ # SPDX-License-Identifier: Apache-2.0
4+
5+ coverage :
6+ status :
7+ project :
8+ default :
9+ target : 85%
10+ patch :
11+ default :
12+ target : 85%
13+ only_pulls : true
14+
15+ ignore :
16+ - " test/integration"
Original file line number Diff line number Diff line change 88.DS_Store
99.vscode
1010debug.test
11+ coverage.txt
1112vendor /
1213scripts /_go /pkg /
1314scripts /_go /bin /
Original file line number Diff line number Diff line change 11# Hyperledger Fabric Client SDK for Go
22
3+ [ ![ Release] ( https://img.shields.io/github/release/hyperledger/fabric-sdk-go.svg?style=flat-square )] ( https://github.com/hyperledger/fabric-sdk-go/releases/latest )
4+ [ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( https://raw.githubusercontent.com/hyperledger/fabric-sdk-go/master/LICENSE )
5+ [ ![ GoDoc] ( https://godoc.org/github.com/hyperledger/fabric-sdk-go?status.svg )] ( https://godoc.org/github.com/hyperledger/fabric-sdk-go )
6+
37[ ![ Build Status] ( https://dev.azure.com/hyperledger/fabric-sdk-go/_apis/build/status/hyperledger.fabric-sdk-go?branchName=master )] ( https://dev.azure.com/hyperledger/fabric-sdk-go/_build/latest?definitionId=19&branchName=master )
8+ [ ![ codecov] ( https://codecov.io/gh/hyperledger/fabric-sdk-go/branch/master/graph/badge.svg )] ( https://codecov.io/gh/hyperledger/fabric-sdk-go )
49[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/hyperledger/fabric-sdk-go )] ( https://goreportcard.com/report/github.com/hyperledger/fabric-sdk-go )
5- [ ![ GoDoc] ( https://godoc.org/github.com/hyperledger/fabric-sdk-go?status.svg )] ( https://godoc.org/github.com/hyperledger/fabric-sdk-go )
610
711This SDK enables Go developers to build solutions that interact with [ Hyperledger Fabric] ( http://hyperledger-fabric.readthedocs.io/en/latest/ ) .
812
Original file line number Diff line number Diff line change 2626 # TODO: resolve dependencies between dependencies.sh and install_deps.yml
2727 - script : make unit-test
2828 displayName : Run checks and unit test
29+ - script : bash <(curl https://codecov.io/bash)
30+ displayName : Upload coverage to Codecov
2931
3032- job : IntegrationTest
3133 pool :
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ GO_LDFLAGS="${GO_LDFLAGS} -X ${PROJECT_MODULE}/test/metadata.ProjectPath=${PROJE
105105GO_LDFLAGS=" ${GO_LDFLAGS} -X ${PROJECT_MODULE} /test/metadata.ChannelConfigPath=test/fixtures/fabric/${FABRIC_SDKGO_CODELEVEL_VER} /channel"
106106GO_LDFLAGS=" ${GO_LDFLAGS} -X ${PROJECT_MODULE} /test/metadata.CryptoConfigPath=test/fixtures/fabric/${FABRIC_CRYPTOCONFIG_VERSION} /crypto-config"
107107GO_LDFLAGS=" ${GO_LDFLAGS} -X ${PROJECT_MODULE} /test/metadata.TestRunID=${FABRIC_SDKGO_TESTRUN_ID} "
108- ${GO_CMD} test ${RACEFLAG} -cover -tags " testing ${GO_TAGS} " ${GO_TESTFLAGS} -ldflags=" ${GO_LDFLAGS} " ${PKGS[@]} -p 1 -timeout=40m
108+ ${GO_CMD} test ${RACEFLAG} -coverprofile=coverage.txt -covermode=atomic -tags " testing ${GO_TAGS} " ${GO_TESTFLAGS} -ldflags=" ${GO_LDFLAGS} " ${PKGS[@]} -p 1 -timeout=40m
109109
110110echo " Unit tests finished successfully"
111111cd ${PWD_ORIG}
You can’t perform that action at this time.
0 commit comments