2019-07-14 02:34:40 +01:00
|
|
|
jobs:
|
|
|
|
- job: build_test
|
|
|
|
displayName: 'testing'
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-latest
|
2019-07-20 20:16:53 +01:00
|
|
|
strategy:
|
2019-07-24 21:42:33 +01:00
|
|
|
maxParallel: 5
|
2019-07-14 02:34:40 +01:00
|
|
|
matrix:
|
|
|
|
windows:
|
|
|
|
BuildSuffix: 'windows-testing'
|
|
|
|
ScriptFolder: 'windows'
|
|
|
|
steps:
|
2019-09-04 05:09:07 +01:00
|
|
|
- script: sudo apt-get update && sudo apt-get --only-upgrade -y install python3-pip && pip install requests urllib3
|
2019-07-24 21:42:33 +01:00
|
|
|
displayName: 'Prepare Environment'
|
2019-07-14 02:34:40 +01:00
|
|
|
- task: PythonScript@0
|
|
|
|
condition: eq(variables['Build.Reason'], 'PullRequest')
|
|
|
|
displayName: 'Determine Testing Status'
|
|
|
|
inputs:
|
|
|
|
scriptSource: 'filePath'
|
2019-07-24 21:42:33 +01:00
|
|
|
scriptPath: '.ci/scripts/merge/check-label-presence.py'
|
2019-07-14 02:34:40 +01: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:
|
2019-07-24 21:42:33 +01:00
|
|
|
artifactSource: 'false'
|
2019-07-28 19:21:18 +01:00
|
|
|
cache: 'false'
|