github.com/kaituanwang/hyperledger@v2.0.1+incompatible/ci/azure-pipelines.yml (about)

     1  # Copyright the Hyperledger Fabric contributors. All rights reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  
     5  name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr)
     6  trigger: none
     7  pr:
     8  - master
     9  - release-2.*
    10  
    11  variables:
    12    GOPATH: $(Agent.BuildDirectory)/go
    13    PATH: $(Agent.BuildDirectory)/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
    14    GOVER: 1.13.4
    15  
    16  jobs:
    17    - job: VerifyBuild
    18      pool:
    19        vmImage: ubuntu-18.04
    20      steps:
    21        - template: install_deps.yml
    22        - checkout: self
    23          path: 'go/src/github.com/hyperledger/fabric'
    24          displayName: Checkout Fabric Code
    25        - script: make basic-checks native
    26          displayName: Run Basic Checks
    27        - script: ./ci/scripts/evaluate_commits.sh
    28          name: SetJobTriggers
    29  
    30    - job: DocBuild
    31      condition: eq(dependencies.VerifyBuild.outputs['SetJobTriggers.buildDoc'], 'true')
    32      dependsOn: VerifyBuild
    33      pool:
    34        vmImage: ubuntu-18.04
    35      container:
    36        image: n42org/tox:3.4.0
    37      steps:
    38        - checkout: self
    39          path: 'go/src/github.com/hyperledger/fabric'
    40          displayName: Checkout Fabric Code
    41        - script: tox -edocs
    42          displayName: Build Documentation
    43        - publish: 'docs/_build/html'
    44          displayName: Publish Documentation Artifacts
    45  
    46    - job: UnitTests
    47      condition: eq(dependencies.VerifyBuild.outputs['SetJobTriggers.runTests'], 'true')
    48      dependsOn: VerifyBuild
    49      pool:
    50        vmImage: ubuntu-18.04
    51      steps:
    52        - template: install_deps.yml
    53        - checkout: self
    54          path: 'go/src/github.com/hyperledger/fabric'
    55          displayName: Checkout Fabric Code
    56        - script: ./ci/scripts/setup_hsm.sh
    57          displayName: Install SoftHSM
    58        - script: make unit-test
    59          displayName: Run Unit Tests
    60  
    61    - job: IntegrationTests
    62      condition: eq(dependencies.VerifyBuild.outputs['SetJobTriggers.runTests'], 'true')
    63      dependsOn: VerifyBuild
    64      pool:
    65        vmImage: ubuntu-18.04
    66      strategy:
    67        parallel: 5
    68      timeoutInMinutes: 90
    69      steps:
    70        - template: install_deps.yml
    71        - checkout: self
    72          path: 'go/src/github.com/hyperledger/fabric'
    73          displayName: Checkout Fabric Code
    74        - script: make integration-test
    75          displayName: Run Integration Tests
    76