build-testing.yml 1.1 KB

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