Skip to content

Commit

Permalink
Azure pipelines build (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
nklincoln authored Dec 31, 2020
1 parent bf94701 commit bc436e8
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,31 @@ jobs:
- stage: checks and unit tests
name: Package name check, license check, lint check, unit tests
if: type = pull_request OR repo != hyperledger/caliper
script: ./.travis/checks-and-unit-tests.sh
script: ./.build/checks-and-unit-tests.sh

# parallel integrations tests
- stage: benchmark integration tests
name: HL Fabric integration test
if: type = pull_request OR repo != hyperledger/caliper
script: BENCHMARK=fabric ./.travis/benchmark-integration-test-direct.sh
script: BENCHMARK=fabric ./.build/benchmark-integration-test-direct.sh
- name: Ethereum integration test
if: type = pull_request OR repo != hyperledger/caliper
script: BENCHMARK=ethereum ./.travis/benchmark-integration-test-direct.sh
script: BENCHMARK=ethereum ./.build/benchmark-integration-test-direct.sh
- name: HL Besu integration test
if: type = pull_request OR repo != hyperledger/caliper
script: BENCHMARK=besu ./.travis/benchmark-integration-test-direct.sh
script: BENCHMARK=besu ./.build/benchmark-integration-test-direct.sh
- name: FISCO-BCOS integration test
if: type = pull_request OR repo != hyperledger/caliper
script: BENCHMARK=fisco-bcos ./.travis/benchmark-integration-test-direct.sh
script: BENCHMARK=fisco-bcos ./.build/benchmark-integration-test-direct.sh
- name: Generator integration test
if: type = pull_request OR repo != hyperledger/caliper
script: BENCHMARK=generator ./.travis/benchmark-integration-test-direct.sh
script: BENCHMARK=generator ./.build/benchmark-integration-test-direct.sh

# publish packages
- stage: publish
name: Publishing to NPM and Docker Hub
if: type = push AND repo = hyperledger/caliper
script: ./.travis/publish.sh
script: ./.build/publish.sh

cache:
directories:
Expand Down
91 changes: 91 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
trigger:
- main

pool:
vmImage: 'ubuntu-latest'

jobs:
- job: unitTests
displayName: 'Base build and unit tests'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'

- script: |
./scripts/check-package-names.sh
displayName: 'check package names'
- script: |
npm install
npm run bootstrap
displayName: 'npm install, bootstrap'
- script: |
./packages/caliper-publish/publish.js version check
displayName: 'version check'
- script: |
npm test
displayName: 'unit test'
- job: fabricIntegration
displayName: 'Fabric Integration Test'
dependsOn: unitTests
variables: { BENCHMARK: fabric }
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
.build/benchmark-integration-test-direct.sh
- job: ethereumIntegration
displayName: 'Ethereum Integration Test'
dependsOn: unitTests
variables: { BENCHMARK: ethereum }
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
.build/benchmark-integration-test-direct.sh
- job: besuIntegration
displayName: 'Besu Integration Test'
dependsOn: unitTests
variables: { BENCHMARK: besu }
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
.build/benchmark-integration-test-direct.sh
- job: fiscoIntegration
displayName: 'FISCO BCOS Integration Test'
dependsOn: unitTests
variables: { BENCHMARK: fisco-bcos }
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
.build/benchmark-integration-test-direct.sh
- job: generatorIntegration
displayName: 'Generator Integration Test'
dependsOn: unitTests
variables: { BENCHMARK: generator }
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
.build/benchmark-integration-test-direct.sh

0 comments on commit bc436e8

Please sign in to comment.