summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/ci/azure/update_hosts.yml
blob: bcb8536a5cba0f74880c51b4c5c2be58da17e5a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
steps:
- script: |
    set -eux -o pipefail
    ./wpt make-hosts-file | sudo tee -a /etc/hosts
  displayName: 'Update hosts (macOS)'
  condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
- powershell: |
    $hostFile = "$env:systemroot\System32\drivers\etc\hosts"
    Copy-Item -Path $hostFile -Destination "$hostFile.back" -Force
    python wpt make-hosts-file | Out-File $env:systemroot\System32\drivers\etc\hosts -Encoding ascii -Append
  displayName: 'Update hosts (Windows)'
  condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))