summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/ci/azure/affected_tests.yml
blob: 566021d249687d87f7fc5c9f23110173709e29d2 (plain)
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
parameters:
  checkoutCommit: ''
  affectedRange: 'HEAD^1'
  artifactName: ''

steps:
- template: checkout.yml
- ${{ if ne(parameters.checkoutCommit, '') }}:
  - script: |
      set -eux -o pipefail
      git checkout ${{ parameters.checkoutCommit }}
    displayName: 'Checkout ${{ parameters.checkoutCommit }}'
- template: install_certs.yml
- template: color_profile.yml
- template: install_safari.yml
- template: update_hosts.yml
- template: update_manifest.yml
- script: |
    set -eux -o pipefail
      export SYSTEM_VERSION_COMPAT=0
    ./wpt run --yes --no-pause --no-fail-on-unexpected --no-restart-on-unexpected --affected ${{ parameters.affectedRange }} --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report.json --log-wptscreenshot $(Build.ArtifactStagingDirectory)/wpt_screenshot.txt --channel preview --kill-safari safari
  displayName: 'Run tests'
- task: PublishBuildArtifacts@1
  displayName: 'Publish results'
  inputs:
    artifactName: '${{ parameters.artifactName }}'
  condition: succeededOrFailed()