Ubuntu-PatchCheck.yml 961 B

123456789101112131415161718192021222324252627282930313233343536
  1. ## @file
  2. # Azure Pipielines YML file that evalues the patch series in a PR using the
  3. # python script BaseTools/Scripts/PatchCheck.py.
  4. #
  5. # NOTE: This example monitors pull requests against the edk2-ci branch. Most
  6. # environments would replace 'edk2-ci' with 'master'.
  7. #
  8. # Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
  9. # SPDX-License-Identifier: BSD-2-Clause-Patent
  10. #
  11. # https://github.com/tianocore
  12. #
  13. ##
  14. trigger: none
  15. pr:
  16. - master
  17. - stable/*
  18. pool:
  19. vmImage: 'ubuntu-latest'
  20. steps:
  21. - checkout: self
  22. clean: true
  23. - task: UsePythonVersion@0
  24. inputs:
  25. versionSpec: '>=3.10.6'
  26. architecture: 'x64'
  27. - script: |
  28. git fetch origin $(System.PullRequest.TargetBranch):$(System.PullRequest.TargetBranch)
  29. python BaseTools/Scripts/PatchCheck.py $(System.PullRequest.TargetBranch)..$(System.PullRequest.SourceCommitId)
  30. displayName: 'Use PatchCheck.py to verify patch series in pull request'