Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure pipelines build #1105

Merged
merged 1 commit into from
Dec 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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