summaryrefslogtreecommitdiffstats
path: root/.ci/templates/build-testing.yml
blob: 5761010c32b7bf3d37b965c5b3c5b25dbdb5912b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
jobs:
- job: build_test
  displayName: 'testing'
  pool:
    vmImage: ubuntu-latest
  strategy:
    maxParallel: 5
    matrix:
      windows:
        BuildSuffix: 'windows-testing'
        ScriptFolder: 'windows'
  steps:
  - script: apt upgrade python3-pip && pip install requests urllib3
    displayName: 'Prepare Environment'
  - task: PythonScript@0
    condition: eq(variables['Build.Reason'], 'PullRequest')
    displayName: 'Determine Testing Status'
    inputs:
      scriptSource: 'filePath'
      scriptPath: '.ci/scripts/merge/check-label-presence.py'
      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'
        cache: 'false'