1+ # Uses Scheduled Triggers, which aren't supported in YAML yet.
2+ # https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=vsts&tabs=yaml#scheduled
3+
4+ # Daily Tests for Blazor
5+ # These use Sauce Labs resources, hence they run daily rather than per-commit.
6+
7+ # We just need one Windows machine because all it does is trigger SauceLabs.
8+ variables :
9+ SAUCE_CONNECT_DOWNLOAD_ON_INSTALL : true
10+ E2ETESTS_SauceTest : true
11+ E2ETESTS_Sauce__TunnelIdentifier : ' blazor-e2e-sc-proxy-tunnel'
12+ E2ETESTS_Sauce__HostName : ' sauce.local'
13+ jobs :
14+ - template : jobs/default-build.yml
15+ parameters :
16+ buildDirectory : src/Components
17+ isTestingJob : true
18+ agentOs : Windows
19+ jobName : BlazorDailyTests
20+ jobDisplayName : " Blazor Daily Tests"
21+ afterBuild :
22+
23+ # macOS/Safari
24+ - script : ' dotnet test --filter "StandaloneAppTest"'
25+ workingDirectory : ' src/Components/test/E2ETest'
26+ displayName : ' Run Blazor tests - macOS/Safari'
27+ condition : succeededOrFailed()
28+ env :
29+ # Secrets need to be explicitly mapped to env variables.
30+ E2ETESTS_Sauce__Username : ' $(asplab-sauce-labs-username)'
31+ E2ETESTS_Sauce__AccessKey : ' $(asplab-sauce-labs-access-key)'
32+ # Set platform/browser configuration.
33+ E2ETESTS_Sauce__TestName : ' Blazor Daily Tests - macOS/Safari'
34+ E2ETESTS_Sauce__PlatformName : ' macOS 10.14'
35+ E2ETESTS_Sauce__BrowserName : ' Safari'
36+ # Need to explicitly set version here because some older versions don't support timeouts in Safari.
37+ E2ETESTS_Sauce__SeleniumVersion : ' 3.4.0'
38+
39+ # Android/Chrome
40+ - script : ' dotnet test --filter "StandaloneAppTest"'
41+ workingDirectory : ' src/Components/test/E2ETest'
42+ displayName : ' Run Blazor tests - Android/Chrome'
43+ condition : succeededOrFailed()
44+ env :
45+ # Secrets need to be explicitly mapped to env variables.
46+ E2ETESTS_Sauce__Username : ' $(asplab-sauce-labs-username)'
47+ E2ETESTS_Sauce__AccessKey : ' $(asplab-sauce-labs-access-key)'
48+ # Set platform/browser configuration.
49+ E2ETESTS_Sauce__TestName : ' Blazor Daily Tests - Android/Chrome'
50+ E2ETESTS_Sauce__PlatformName : ' Android'
51+ E2ETESTS_Sauce__PlatformVersion : ' 10.0'
52+ E2ETESTS_Sauce__BrowserName : ' Chrome'
53+ E2ETESTS_Sauce__DeviceName : ' Android GoogleAPI Emulator'
54+ E2ETESTS_Sauce__DeviceOrientation : ' portrait'
55+ E2ETESTS_Sauce__AppiumVersion : ' 1.9.1'
56+ artifacts :
57+ - name : Windows_Logs
58+ path : ../../artifacts/log/
59+ publishOnError : true
0 commit comments