build-testing.yml 1.2 KB

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