mirror of
https://github.com/servo/servo.git
synced 2025-08-20 04:45:33 +01:00
Update web-platform-tests to revision 0f0b7a7e353421b600ee555bf354d3a98bb603ae
This commit is contained in:
parent
363073568e
commit
71dcf37d55
175 changed files with 2749 additions and 678 deletions
|
@ -0,0 +1,13 @@
|
|||
# This is cleanup for update_hosts.yml and killing all Edge and WebDriver
|
||||
# processes to leave the agent in a clean state for the next job. This is
|
||||
# necessary because the Windows 10 agents aren't reset between each job.
|
||||
steps:
|
||||
- powershell: |
|
||||
$hostFile = "$env:systemroot\System32\drivers\etc\hosts"
|
||||
Copy-Item -Path "$hostFile.back" -Destination $hostFile -Force
|
||||
taskkill /f /im MicrosoftEdge*
|
||||
taskkill /f /im MicrosoftWebDriver.exe
|
||||
displayName: 'Restore hosts file and cleanup test machine'
|
||||
condition: always()
|
||||
errorActionPreference: silentlyContinue
|
||||
ignoreLASTEXITCODE: true
|
|
@ -2,4 +2,8 @@ steps:
|
|||
- script: |
|
||||
# https://github.com/web-platform-tests/results-collection/blob/master/src/scripts/trust-root-ca.sh
|
||||
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain tools/certs/cacert.pem
|
||||
displayName: 'Install web-platform.test certificate'
|
||||
displayName: 'Install web-platform.test certificate (macOS)'
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
|
||||
- script: certutil –addstore -enterprise –f "Root" tools\certs\cacert.pem
|
||||
displayName: 'Install web-platform.test certificate (Windows)'
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
steps:
|
||||
- powershell: |
|
||||
Start-BitsTransfer -Source https://www.python.org/ftp/python/2.7.15/python-2.7.15.amd64.msi -Destination python.msi
|
||||
$hash = (Get-FileHash python.msi).Hash.ToLower()
|
||||
$expectedHash = "5e85f3c4c209de98480acbf2ba2e71a907fd5567a838ad4b6748c76deb286ad7"
|
||||
if ($hash.Equals($expectedHash)) {
|
||||
Write-Host "python.msi hash verified"
|
||||
} else {
|
||||
Throw "python.msi hash mismatch, got $hash, expected $expectedHash"
|
||||
}
|
||||
msiexec /i python.msi TARGETDIR=C:\Python27 /q
|
||||
Write-Host "##vso[task.prependpath]C:\Python27"
|
||||
Write-Host "##vso[task.prependpath]C:\Python27\Scripts"
|
||||
displayName: 'Install Python (Windows)'
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
|
@ -9,4 +9,11 @@ steps:
|
|||
# Integrity Protection, see https://stackoverflow.com/a/33004920.
|
||||
pip install --user ${{ parameters.packages }}
|
||||
echo "##vso[task.prependpath]$HOME/Library/Python/2.7/bin"
|
||||
displayName: 'Install Python packages'
|
||||
displayName: 'Install Python packages (macOS)'
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
|
||||
# TODO(foolip): remove --no-cache-dir when the Windows agents are reset
|
||||
# between each job. Currently, jobs can otherwise fail with "Cache entry
|
||||
# deserialization failed, entry ignored".
|
||||
- powershell: pip --no-cache-dir --disable-pip-version-check install --upgrade ${{ parameters.packages }}
|
||||
displayName: 'Install Python packages (Windows)'
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
steps:
|
||||
- script: systeminfo
|
||||
displayName: 'Show system info (Windows)'
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
|
@ -1,3 +1,10 @@
|
|||
steps:
|
||||
- script: ./wpt make-hosts-file | sudo tee -a /etc/hosts
|
||||
displayName: 'Update /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'))
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
steps:
|
||||
- script: ./wpt manifest
|
||||
# `python wpt` instead of `./wpt` is to make this work on Windows:
|
||||
- script: python wpt manifest
|
||||
displayName: 'Update manifest'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue