blob: 96ab2b8cc523ea684996933f4bf3e76176bd9d9c [file] [log] [blame]
parameters:
checkoutCommit: ''
affectedRange: 'HEAD^1'
artifactName: ''
steps:
- template: checkout.yml
- ${{ if ne(parameters.checkoutCommit, '') }}:
- script: git checkout ${{ parameters.checkoutCommit }}
displayName: 'Checkout ${{ parameters.checkoutCommit }}'
- template: pip_install.yml
parameters:
packages: virtualenv
- template: install_certs.yml
- template: install_safari.yml
- template: update_hosts.yml
- template: update_manifest.yml
- script: ./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()