forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
68 lines (63 loc) · 1.97 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright the Hyperledger Fabric contributors. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr)
trigger: none
pr:
- master
- release-2.*
variables:
GOPATH: $(Agent.BuildDirectory)/go
PATH: $(Agent.BuildDirectory)/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
GOVER: 1.16.7
stages:
- stage: VerifyBuild
dependsOn: []
jobs:
- job: Checks
pool:
vmImage: ubuntu-18.04
steps:
- template: install_deps.yml
- checkout: self
path: 'fabric'
displayName: Checkout Fabric Code
- script: make basic-checks native
displayName: Run Basic Checks
- script: ./ci/scripts/evaluate_commits.sh
name: SetJobTriggers
- stage: UnitTests
dependsOn: VerifyBuild
jobs:
- job: UnitTests
condition: eq(stageDependencies.VerifyBuild.Checks.outputs['SetJobTriggers.runTests'], 'true')
pool:
vmImage: ubuntu-18.04
steps:
- template: install_deps.yml
- checkout: self
path: 'fabric'
displayName: Checkout Fabric Code
- script: ./ci/scripts/setup_hsm.sh
displayName: Install SoftHSM
- script: make unit-test
displayName: Run Unit Tests
- stage: IntegrationTests
dependsOn: VerifyBuild
jobs:
- job: IntegrationTests
condition: eq(stageDependencies.VerifyBuild.Checks.outputs['SetJobTriggers.runTests'], 'true')
pool:
vmImage: ubuntu-18.04
strategy:
parallel: 5
timeoutInMinutes: 90
steps:
- template: install_deps.yml
- checkout: self
path: 'fabric'
displayName: Checkout Fabric Code
- script: ./ci/scripts/setup_hsm.sh
displayName: Install SoftHSM
- script: make integration-test
displayName: Run Integration Tests