forked from hyperledger/fabric-chaincode-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mbwhite/azure-pipelines
Update azure-pipelines
- Loading branch information
Showing
27 changed files
with
700 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,133 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# fabric-chaincode-node azure pipeline configuration. | ||
# | ||
|
||
trigger: | ||
- master | ||
branches: | ||
include: | ||
- 'master' | ||
- 'release-1.4' | ||
tags: | ||
include: | ||
- '*' | ||
|
||
# These are custom defined variables, the pipeline one is currently used for the build scripts | ||
# to know to produce tests results in XML format for Azure to consume, for developers | ||
# this isn't set so command line output is given | ||
# | ||
variables: | ||
component: fabric-chaincode-node | ||
pipeline: ci | ||
|
||
# Build on Ubutu | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- script: echo Hello, world! | ||
displayName: 'Run a one-line script' | ||
|
||
- script: | | ||
echo Add other tasks to build, test, and deploy your project. | ||
echo See https://aka.ms/yaml | ||
displayName: 'Run a multi-line script' | ||
# | ||
# The stages and jobs, potential for rationalization and optimization | ||
# Keeping it simple and explict whilst we gain experience | ||
stages: | ||
- stage: Build_and_Test | ||
jobs: | ||
- job: main | ||
displayName: 'Build, lint, UT' | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '10.x' | ||
- script: | | ||
node common/scripts/install-run-rush.js install | ||
node common/scripts/install-run-rush.js update | ||
displayName: 'Setup the node environment' | ||
- script: | | ||
node common/scripts/install-run-rush.js rebuild | ||
displayName: 'Full rebuild' | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/test-results.xml' | ||
artifactName: 'Unit Test results' | ||
testRunTitle: 'Unit Test results' | ||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: 'cobertura' | ||
summaryFileLocation: '**/cobertura-coverage.xml' | ||
artifactName: 'Unit Test Coverage' | ||
- job: fvt | ||
displayName: 'FV Tests' | ||
dependsOn: main | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '10.x' | ||
- script: | | ||
node common/scripts/install-run-rush.js install | ||
node common/scripts/install-run-rush.js update | ||
node common/scripts/install-run-rush.js rebuild | ||
displayName: 'Setup the node environment' | ||
- script: | | ||
node common/scripts/install-run-rush.js start-fabric | ||
node common/scripts/install-run-rush.js start-verdaccio | ||
docker images | grep hyperledger && docker ps -a | ||
node common/scripts/install-run-rush.js test:fv | ||
node common/scripts/install-run-rush.js test:e2e | ||
displayName: 'FV Tests' | ||
- task: PublishTestResults@2 | ||
condition: or(succeeded(), failed()) # publish either way | ||
inputs: | ||
testResultsFiles: '**/test-results.xml' | ||
artifactName: 'FV Test results' | ||
testRunTitle: 'FV Test results' | ||
# - job: pack_tgz | ||
# dependsOn: | ||
# - main | ||
# - fvt | ||
# steps: | ||
# - script: | | ||
# npm run tgzpack | ||
# - task: CopyFiles@2 | ||
# inputs: | ||
# contents: '**/fabric-*/*.tgz' | ||
# targetFolder: $(Build.ArtifactStagingDirectory)/tgz | ||
# - task: PublishBuildArtifacts@1 | ||
# inputs: | ||
# pathToPublish: $(Build.ArtifactStagingDirectory)/tgz | ||
# artifactName: MyBuildOutputs | ||
|
||
# - job: apidocs | ||
# steps: | ||
# - task: NodeTool@0 | ||
# inputs: | ||
# versionSpec: '8.x' | ||
# - script: | | ||
# npm install | ||
# npm install -g gulp-cli | ||
# displayName: 'Setup the node environment' | ||
# - script: | | ||
# gulp docs | ||
# displayName: 'Produce API docs' | ||
# - publish: $(System.DefaultWorkingDirectory)/docs/gen/ | ||
# artifact: 'jsdocs' | ||
# - stage: Publish_tag | ||
# condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags')) | ||
# jobs: | ||
# - job: update_version | ||
# steps: | ||
# - script: | | ||
# env | sort | ||
# echo "Update the version number" | ||
# echo "Make sure release notes are present" | ||
# echo "Make sure change history is present" | ||
# - job: npm_publish | ||
# steps: | ||
# - script: | | ||
# echo "Setup .npmrc" | ||
# echo "Use pipeline secret to login" | ||
# echo "publish" | ||
# - job: jsdoc_publish | ||
# steps: | ||
# - script: | | ||
# echo "checkout docs branch" | ||
# echo "checking" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"files": { | ||
"docker/fabric-nodeenv/Dockerfile": "ee8cf607a58bfd73cf2f262f70b7b80e2d17915b", | ||
"docker/fabric-nodeenv/build.sh": "09e6c8de77fb75290129fa93ae226218efbb50e5", | ||
"docker/fabric-nodeenv/docker.js": "7c56d7aa4917ea54c46e4c5ecb4216e9f70e8661", | ||
"docker/fabric-nodeenv/package-deps.json": "1a4d77c7ff4a3552596e6ad20299c645fecb6ebd", | ||
"docker/fabric-nodeenv/package.json": "46df96f1542c124fdbce3eebb26fbbb8178a4c05", | ||
"docker/fabric-nodeenv/start.sh": "e5258ff0b9db9c76c657c1ca25c0933c0bf29c3a" | ||
}, | ||
"arguments": "gulp -f docker.js " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"reporterEnabled": "spec, xunit", | ||
"xunitReporterOptions": { | ||
"output": "test-results.xml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"files": { | ||
"libraries/fabric-shim/.npmignore": "dc2045f25a0bd5dc7b80476bbb2f651323ef99a5", | ||
"libraries/fabric-shim/README.md": "962b8ad14c22647525762bac0c5b51f8a578f6f4", | ||
"libraries/fabric-shim/bundle.d.ts": "a3acd5e1ae8252c0f52f5955cfb4be790cad8686", | ||
"libraries/fabric-shim/bundle.js": "33a0cd531033d11a2f8ee4851e664dc6fd28c4aa", | ||
"libraries/fabric-shim/cli.js": "235f5676f05018a2fba5e875565ea5850921433a", | ||
"libraries/fabric-shim/config.json": "436985380cdb92a85a48d3c377f690873a731e4c", | ||
"libraries/fabric-shim/google-protos/google/protobuf/empty.proto": "8a59a85c65510d6177656d670d197e4b0d7008aa", | ||
"libraries/fabric-shim/google-protos/google/protobuf/timestamp.proto": "53d26a637a4ba43db28a4e5ca270db7d4e71ed41", | ||
"libraries/fabric-shim/index.js": "eba64698d0a41ece8360afab76da78dc8ffd24c5", | ||
"libraries/fabric-shim/lib/chaincode.js": "1fb726e55530cc739c1faef1dd958d2db11a1b4b", | ||
"libraries/fabric-shim/lib/cmds/metadata.js": "95cfa4e9418d0ed6011cf0b35d1061a7fa72ab5a", | ||
"libraries/fabric-shim/lib/cmds/metadata/generateCommand.js": "605d8c0c94ea5122bb5a179b3d245233b0a510db", | ||
"libraries/fabric-shim/lib/cmds/metadata/lib/generate.js": "f6fe975ec6e3e9004b8270cfe9de7080d2bad6f2", | ||
"libraries/fabric-shim/lib/cmds/startCommand.js": "ddb445b60650f627630ef42f0101e382628225ef", | ||
"libraries/fabric-shim/lib/contract-spi/bootstrap.js": "f682018eab7bccd290a4d36c7a000ae955857cda", | ||
"libraries/fabric-shim/lib/contract-spi/chaincodefromcontract.js": "6ed61eb72ced74ae2cab7f4a17a099c55f009189", | ||
"libraries/fabric-shim/lib/contract-spi/datamarshall.js": "7e6fb550ef467a35dba9791535ccfdfc09f973c8", | ||
"libraries/fabric-shim/lib/contract-spi/systemcontract.js": "43fdcc31a79a5f505c1da39d8db03ab6a0de60b6", | ||
"libraries/fabric-shim/lib/handler.js": "98ed673349c158046262ff49c77e6cefe0e58ac0", | ||
"libraries/fabric-shim/lib/iterators.js": "6e67c61337ac705e7b8463b7fc6d5b4294ee9c9e", | ||
"libraries/fabric-shim/lib/logger.js": "930242e6c90270cf91378a4b167a4d5b3ba28d7e", | ||
"libraries/fabric-shim/lib/stub.js": "3d673eba5e35404bb4383f2a1370aa9888c84d48", | ||
"libraries/fabric-shim/lib/utils/statebased.js": "0c0a96d17e43a75450f16e1673afc6b5c267f50f", | ||
"libraries/fabric-shim/lib/utils/utils.js": "31f1f222ce6faaa804b88a805372506117e2c232", | ||
"libraries/fabric-shim/package-deps.json": "18174f3f7c852318b11d344ba785a0b68550fd37", | ||
"libraries/fabric-shim/package.json": "8689f58e9ede46f931575f5389882c0100076934", | ||
"libraries/fabric-shim/protos/common/collection.proto": "77283d56d659a8dfb239e4f7eb0ed21f8071eb79", | ||
"libraries/fabric-shim/protos/common/common.proto": "ca18f4a6647652d53d8040843c85931f26202e31", | ||
"libraries/fabric-shim/protos/common/configtx.proto": "188848e65bd1c408a79e80e0fc58c8066c63fd41", | ||
"libraries/fabric-shim/protos/common/configuration.proto": "a60d875423e7d29b61e231f895232782bc78b090", | ||
"libraries/fabric-shim/protos/common/ledger.proto": "ee5b1ba7d5e77cb29520a1d74e7e6a31baaf83da", | ||
"libraries/fabric-shim/protos/common/policies.proto": "8ac81d09f1aad9e988fdcc07cf6aef2d6574e243", | ||
"libraries/fabric-shim/protos/discovery/protocol.proto": "d2b29bdc0d740558dfb95bc44aba1f16846b7e5b", | ||
"libraries/fabric-shim/protos/gossip/message.proto": "f567db5c08e412a4a1400c40e953367718b9b3b7", | ||
"libraries/fabric-shim/protos/ledger/queryresult/kv_query_result.proto": "77c6471950ed71ee20411abebc6c1a190ebf3a98", | ||
"libraries/fabric-shim/protos/ledger/rwset/kvrwset/kv_rwset.proto": "c4f855506fcc596c7a22d2fa0bab734a5006f0f5", | ||
"libraries/fabric-shim/protos/ledger/rwset/rwset.proto": "d9e29c59931fa130e427fdcb649869e7dddce0f0", | ||
"libraries/fabric-shim/protos/msp/identities.proto": "46453cf3b86f5b948a3aaa46a3a6b5ddc88d2a8b", | ||
"libraries/fabric-shim/protos/msp/msp_config.proto": "c459e3da4faa6e7a9163b0a8b31a1cd2a8506cd4", | ||
"libraries/fabric-shim/protos/msp/msp_principal.proto": "bb9521ac4bf4d23ffe7b17494d1ffc45923e357a", | ||
"libraries/fabric-shim/protos/orderer/ab.proto": "68c43e4de8f06238e806b66161491f3a99f64056", | ||
"libraries/fabric-shim/protos/orderer/cluster.proto": "8ff94b3bb49f13eff6a3139ddea2d60ceac34090", | ||
"libraries/fabric-shim/protos/orderer/configuration.proto": "c6faded814a846f159ee4121ce0d1619a032b7ad", | ||
"libraries/fabric-shim/protos/orderer/etcdraft/configuration.proto": "3ad6037b5ba6e4fbb88af74c57d2fd45e90df0f2", | ||
"libraries/fabric-shim/protos/orderer/etcdraft/metadata.proto": "0cf74a1c9d6f4bd8935957173bc8977161fd5535", | ||
"libraries/fabric-shim/protos/orderer/kafka.proto": "f71a79edd250e8f7d7e0e64591520812a320351b", | ||
"libraries/fabric-shim/protos/peer/chaincode.proto": "4e4cd6248735b7d28c60046f77f9c8e80ca597f7", | ||
"libraries/fabric-shim/protos/peer/chaincode_event.proto": "41f75ea7d01f885d430d0fa3ccdf7be9643aaa8c", | ||
"libraries/fabric-shim/protos/peer/chaincode_shim.proto": "48afbdb35daf5e1b1291f2e5fe177a05b9526914", | ||
"libraries/fabric-shim/protos/peer/configuration.proto": "e9b41bc80150b87cdeb3f6d050e5e6730f33bc40", | ||
"libraries/fabric-shim/protos/peer/events.proto": "522189cd846288653aa4fc6c14d705b3d5c3c246", | ||
"libraries/fabric-shim/protos/peer/lifecycle/chaincode_definition.proto": "bfe01fb8409bacbd71de577af18233397c359227", | ||
"libraries/fabric-shim/protos/peer/lifecycle/db.proto": "9adb5d511c05338f17fb46604da9e625dfb5befb", | ||
"libraries/fabric-shim/protos/peer/lifecycle/lifecycle.proto": "4e48e6877b7df8cca6bca6be0feed1c7de8a8274", | ||
"libraries/fabric-shim/protos/peer/peer.proto": "396b74afbea2c5cbb7c1b4a99539e7a723ee51d5", | ||
"libraries/fabric-shim/protos/peer/policy.proto": "1f67451a381ffa76270549bae71d4a90ba0a62d0", | ||
"libraries/fabric-shim/protos/peer/proposal.proto": "a9459467e422ad92aefa823ce9c3afc3f968721d", | ||
"libraries/fabric-shim/protos/peer/proposal_response.proto": "4a29e9e754020fd65ee58cdefbf0861996f0e606", | ||
"libraries/fabric-shim/protos/peer/query.proto": "5c25abda9b816c39a2b7e2dd444af062a524d082", | ||
"libraries/fabric-shim/protos/peer/resources.proto": "be9bdd067e3d2ce66eefa6727c57f747c1f77edc", | ||
"libraries/fabric-shim/protos/peer/signed_cc_dep_spec.proto": "05f46892d303ac79d01fc2f38171a25d7d8fab16", | ||
"libraries/fabric-shim/protos/peer/transaction.proto": "fdffba33a8d12022e75858a3c1a50f2e1b3875d7", | ||
"libraries/fabric-shim/protos/transientstore/transientstore.proto": "1b6d577ee2c4678604033532196150f58375a4e7", | ||
"libraries/fabric-shim/startup.sh": "b0f86946114cd70f0462ef99b8c2d14248c034cc", | ||
"libraries/fabric-shim/test/typescript/chaincode.ts": "590e7302714480414a412eb5e3b848cbaa84a699", | ||
"libraries/fabric-shim/test/typescript/tsconfig.json": "02a31c3aa79d1b3ad801d5c15f1a094d257119d8", | ||
"libraries/fabric-shim/test/unit/chaincode.js": "c6969816529b3d7d90d57ffe59a0a2ee88c541ef", | ||
"libraries/fabric-shim/test/unit/cli.js": "d1103bd36f252a0e08a72e9e3ec206c9b29a5da5", | ||
"libraries/fabric-shim/test/unit/client-identity.js": "588e2d0a19cefbf2f4bcbd6d6cf23fb5f548ff40", | ||
"libraries/fabric-shim/test/unit/cmds/chaincode.js": "5ad16488e923cd46b0ba6e30d642b7ab12c4f03a", | ||
"libraries/fabric-shim/test/unit/cmds/metadata.js": "16b0d60994c898131cfcd55908b69f0715a0a6e5", | ||
"libraries/fabric-shim/test/unit/cmds/metadata/generateCommand.js": "686c44b1af976dd545ed30b5da02530f562bf93a", | ||
"libraries/fabric-shim/test/unit/cmds/metadata/lib/generate.js": "db4d99f1a9683546872e55377f69e2b6cc7a2ad9", | ||
"libraries/fabric-shim/test/unit/contract-spi/bootstrap.js": "bd1698b7f456c79808133c547117a401ed88d7bc", | ||
"libraries/fabric-shim/test/unit/contract-spi/chaincodefromcontract.js": "04828ec82e99ce99b607eb606a983593f4f1d955", | ||
"libraries/fabric-shim/test/unit/contract-spi/datamarshall.js": "95a4c6eacc80da0504acbf293efc03d3da4c7433", | ||
"libraries/fabric-shim/test/unit/contract-spi/systemcontract.js": "1453b14ec1549be752f1615156ffaa7ee7986966", | ||
"libraries/fabric-shim/test/unit/handler.js": "09bf0530790d6e84fc9e696711c548e83c4c9d0c", | ||
"libraries/fabric-shim/test/unit/iterators.js": "4d9e89816de6e84fcd1658168cf49eb9bff29a60", | ||
"libraries/fabric-shim/test/unit/logger.js": "b829e4015caac88a40f66408b393a7811e18c9b0", | ||
"libraries/fabric-shim/test/unit/module.js": "89407876b28d3012d85b1f20fc5af618954372d0", | ||
"libraries/fabric-shim/test/unit/stub.js": "d6e745a0599358e0c59214cab59106bd09c1b05a", | ||
"libraries/fabric-shim/test/unit/utils/statebased.js": "461428761c6c910f95b66532264934eb73a477eb", | ||
"libraries/fabric-shim/test/unit/utils/utils.js": "925bf47349bd045e60fde57f8f51720a3e0721a8", | ||
"libraries/fabric-shim/types/index.d.ts": "6cbcf1ae02ff327a7255e4a296733f22307fe10d", | ||
"libraries/fabric-shim/types/tsconfig.json": "ed09ed38db1792491a70a0300a3790c5ad4ae7cc", | ||
"libraries/fabric-shim/xunit.xml": "0d92d61a409aab80178d3d8cac6947d99e5c89c4", | ||
"libraries/fabric-shim/test-results.xml": "c3f6e845af701fe80cadad5a1efeaa15976b565e" | ||
}, | ||
"arguments": "npm run lint & npm test 2>&1 " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.