build-testing.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. jobs:
  2. - job: build_test
  3. displayName: 'testing'
  4. pool:
  5. vmImage: ubuntu-latest
  6. strategy:
  7. maxParallel: 5
  8. matrix:
  9. windows:
  10. BuildSuffix: 'windows-testing'
  11. ScriptFolder: 'windows'
  12. steps:
  13. - script: sudo apt-get update && sudo apt-get --only-upgrade -y install python3-pip && pip install requests urllib3
  14. displayName: 'Prepare Environment'
  15. - task: PythonScript@0
  16. condition: eq(variables['Build.Reason'], 'PullRequest')
  17. displayName: 'Determine Testing Status'
  18. inputs:
  19. scriptSource: 'filePath'
  20. scriptPath: '.ci/scripts/merge/check-label-presence.py'
  21. arguments: '$(System.PullRequest.PullRequestNumber) create-testing-build'
  22. - ${{ if eq(variables.enabletesting, 'true') }}:
  23. - template: ./sync-source.yml
  24. parameters:
  25. artifactSource: $(parameters.artifactSource)
  26. needSubmodules: 'true'
  27. - template: ./mergebot.yml
  28. parameters:
  29. matchLabel: 'testing-merge'
  30. - template: ./build-single.yml
  31. parameters:
  32. artifactSource: 'false'
  33. cache: 'false'