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