-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1503061 [wpt PR 13769] - Add configuration for Azure Pipelines, a…
…=testonly Automatic update from web-platform-testsAdd configuration for Azure Pipelines (#13769) This just runs infrastructure/ tests on relevant PRs, something minimal and useful before trying to enable Azure Pipelines for the first time. Part of web-platform-tests/wpt#13299. Next step: web-platform-tests/wpt#13818 -- wpt-commits: 4098fe5f1f08442a8d63db9eb107b49a2f4fe752 wpt-pr: 13769 UltraBlame original commit: afe5654fe9baae07072ff2384738e54bd29c1601
- Loading branch information
Showing
2 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# This is the configuration file for Azure Pipelines, used to run tests on | ||
# macOS. Documentation to help understand this setup: | ||
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema | ||
|
||
trigger: none # disable builds for branches | ||
|
||
jobs: | ||
- job: macOS | ||
|
||
pool: | ||
vmImage: 'macOS-10.13' | ||
|
||
steps: | ||
- checkout: self | ||
fetchDepth: 50 | ||
submodules: false | ||
|
||
- script: | | ||
echo "Test jobs:" | ||
./wpt test-jobs | while read job; do | ||
echo "$job" | ||
echo "##vso[task.setvariable variable=run_$job]true"; | ||
done | ||
displayName: 'List test jobs' | ||
- script: | | ||
sudo easy_install pip | ||
sudo pip install -U virtualenv | ||
displayName: 'Install Python packages' | ||
condition: variables.run_wptrunner_infrastructure | ||
# Installig Ahem in /Library/Fonts instead of using --install-fonts is a | ||
# workaround for https://github.com/web-platform-tests/wpt/issues/13803. | ||
- script: | | ||
sudo cp fonts/Ahem.ttf /Library/Fonts | ||
displayName: 'Install Ahem font' | ||
condition: variables.run_wptrunner_infrastructure | ||
- 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' | ||
condition: variables.run_wptrunner_infrastructure | ||
- script: | | ||
# Pin to STP 67, as SafariDriver isn't working in 68: | ||
# https://github.com/web-platform-tests/wpt/issues/13800 | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install https://raw.githubusercontent.com/Homebrew/homebrew-cask-versions/23fae0a88868911913c2ee7d527c89164b6d5720/Casks/safari-technology-preview.rb | ||
# https://web-platform-tests.org/running-tests/safari.html | ||
sudo "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" --enable | ||
defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically 1 | ||
displayName: 'Install Safari Technology Preview' | ||
condition: variables.run_wptrunner_infrastructure | ||
- script: | | ||
./wpt make-hosts-file | sudo tee -a /etc/hosts | ||
displayName: 'Update /etc/hosts' | ||
condition: variables.run_wptrunner_infrastructure | ||
- script: | | ||
no_proxy='*' ./wpt run --yes --manifest MANIFEST.json --metadata infrastructure/metadata/ --channel=preview safari_webdriver infrastructure/ | ||
displayName: 'Run infrastructure/ tests' | ||
condition: variables.run_wptrunner_infrastructure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters