yuzu-mirror/.ci/templates/build-testing.yml

37 lines
1.1 KiB
YAML

2019-10-04 23:09:11 +07:00
parameters:
version: ''
2019-07-13 20:34:40 +07:00
jobs:
- job: build_test
displayName: 'testing'
pool:
vmImage: ubuntu-latest
2019-07-20 14:16:53 +07:00
strategy:
maxParallel: 5
2019-07-13 20:34:40 +07:00
matrix:
windows:
BuildSuffix: 'windows-testing'
ScriptFolder: 'windows'
steps:
- script: sudo apt-get update && sudo apt-get --only-upgrade -y install python3-pip && pip install requests urllib3
displayName: 'Prepare Environment'
2019-07-13 20:34:40 +07:00
- task: PythonScript@0
condition: eq(variables['Build.Reason'], 'PullRequest')
displayName: 'Determine Testing Status'
inputs:
scriptSource: 'filePath'
scriptPath: '.ci/scripts/merge/check-label-presence.py'
2019-07-13 20:34:40 +07:00
arguments: '$(System.PullRequest.PullRequestNumber) create-testing-build'
- ${{ if eq(variables.enabletesting, 'true') }}:
- template: ./sync-source.yml
parameters:
artifactSource: $(parameters.artifactSource)
needSubmodules: 'true'
- template: ./mergebot.yml
parameters:
matchLabel: 'testing-merge'
- template: ./build-single.yml
parameters:
artifactSource: 'false'
2019-07-28 13:21:18 +07:00
cache: 'false'
2019-10-04 23:09:11 +07:00
version: $(parameters.version)