Skip to content

Commit bc436e8

Browse files
authored
Azure pipelines build (#1105)
Signed-off-by: nkl199@yahoo.co.uk <nkl199@yahoo.co.uk>
1 parent bf94701 commit bc436e8

File tree

5 files changed

+98
-7
lines changed

5 files changed

+98
-7
lines changed
File renamed without changes.
File renamed without changes.

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ jobs:
2525
- stage: checks and unit tests
2626
name: Package name check, license check, lint check, unit tests
2727
if: type = pull_request OR repo != hyperledger/caliper
28-
script: ./.travis/checks-and-unit-tests.sh
28+
script: ./.build/checks-and-unit-tests.sh
2929

3030
# parallel integrations tests
3131
- stage: benchmark integration tests
3232
name: HL Fabric integration test
3333
if: type = pull_request OR repo != hyperledger/caliper
34-
script: BENCHMARK=fabric ./.travis/benchmark-integration-test-direct.sh
34+
script: BENCHMARK=fabric ./.build/benchmark-integration-test-direct.sh
3535
- name: Ethereum integration test
3636
if: type = pull_request OR repo != hyperledger/caliper
37-
script: BENCHMARK=ethereum ./.travis/benchmark-integration-test-direct.sh
37+
script: BENCHMARK=ethereum ./.build/benchmark-integration-test-direct.sh
3838
- name: HL Besu integration test
3939
if: type = pull_request OR repo != hyperledger/caliper
40-
script: BENCHMARK=besu ./.travis/benchmark-integration-test-direct.sh
40+
script: BENCHMARK=besu ./.build/benchmark-integration-test-direct.sh
4141
- name: FISCO-BCOS integration test
4242
if: type = pull_request OR repo != hyperledger/caliper
43-
script: BENCHMARK=fisco-bcos ./.travis/benchmark-integration-test-direct.sh
43+
script: BENCHMARK=fisco-bcos ./.build/benchmark-integration-test-direct.sh
4444
- name: Generator integration test
4545
if: type = pull_request OR repo != hyperledger/caliper
46-
script: BENCHMARK=generator ./.travis/benchmark-integration-test-direct.sh
46+
script: BENCHMARK=generator ./.build/benchmark-integration-test-direct.sh
4747

4848
# publish packages
4949
- stage: publish
5050
name: Publishing to NPM and Docker Hub
5151
if: type = push AND repo = hyperledger/caliper
52-
script: ./.travis/publish.sh
52+
script: ./.build/publish.sh
5353

5454
cache:
5555
directories:

azure-pipelines.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
trigger:
2+
- main
3+
4+
pool:
5+
vmImage: 'ubuntu-latest'
6+
7+
jobs:
8+
- job: unitTests
9+
displayName: 'Base build and unit tests'
10+
steps:
11+
- task: NodeTool@0
12+
inputs:
13+
versionSpec: '10.x'
14+
displayName: 'Install Node.js'
15+
16+
- script: |
17+
./scripts/check-package-names.sh
18+
displayName: 'check package names'
19+
20+
- script: |
21+
npm install
22+
npm run bootstrap
23+
displayName: 'npm install, bootstrap'
24+
25+
- script: |
26+
./packages/caliper-publish/publish.js version check
27+
displayName: 'version check'
28+
29+
- script: |
30+
npm test
31+
displayName: 'unit test'
32+
33+
- job: fabricIntegration
34+
displayName: 'Fabric Integration Test'
35+
dependsOn: unitTests
36+
variables: { BENCHMARK: fabric }
37+
steps:
38+
- task: NodeTool@0
39+
inputs:
40+
versionSpec: '10.x'
41+
displayName: 'Install Node.js'
42+
- script: |
43+
.build/benchmark-integration-test-direct.sh
44+
45+
- job: ethereumIntegration
46+
displayName: 'Ethereum Integration Test'
47+
dependsOn: unitTests
48+
variables: { BENCHMARK: ethereum }
49+
steps:
50+
- task: NodeTool@0
51+
inputs:
52+
versionSpec: '10.x'
53+
displayName: 'Install Node.js'
54+
- script: |
55+
.build/benchmark-integration-test-direct.sh
56+
57+
- job: besuIntegration
58+
displayName: 'Besu Integration Test'
59+
dependsOn: unitTests
60+
variables: { BENCHMARK: besu }
61+
steps:
62+
- task: NodeTool@0
63+
inputs:
64+
versionSpec: '10.x'
65+
displayName: 'Install Node.js'
66+
- script: |
67+
.build/benchmark-integration-test-direct.sh
68+
69+
- job: fiscoIntegration
70+
displayName: 'FISCO BCOS Integration Test'
71+
dependsOn: unitTests
72+
variables: { BENCHMARK: fisco-bcos }
73+
steps:
74+
- task: NodeTool@0
75+
inputs:
76+
versionSpec: '10.x'
77+
displayName: 'Install Node.js'
78+
- script: |
79+
.build/benchmark-integration-test-direct.sh
80+
81+
- job: generatorIntegration
82+
displayName: 'Generator Integration Test'
83+
dependsOn: unitTests
84+
variables: { BENCHMARK: generator }
85+
steps:
86+
- task: NodeTool@0
87+
inputs:
88+
versionSpec: '10.x'
89+
displayName: 'Install Node.js'
90+
- script: |
91+
.build/benchmark-integration-test-direct.sh

0 commit comments

Comments
 (0)