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
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
10
+ - group : DotNet-MSRC-Storage
11
+ - group : AzureDevOps-Artifact-Feeds-Pats
12
+ - name : SAUCE_CONNECT_DOWNLOAD_ON_INSTALL
13
+ value : true
14
+ - name : E2ETESTS_SauceTest
15
+ value : true
16
+ - name : E2ETESTS_Sauce__TunnelIdentifier
17
+ value : ' blazor-e2e-sc-proxy-tunnel'
18
+ - name : E2ETESTS_Sauce__HostName
19
+ value : ' sauce.local'
20
+
21
+ jobs :
22
+ - template : jobs/default-build.yml
23
+ parameters :
24
+ buildDirectory : src/Components
25
+ isTestingJob : true
26
+ agentOs : Windows
27
+ jobName : BlazorDailyTests
28
+ jobDisplayName : " Blazor Daily Tests"
29
+ afterBuild :
30
+
31
+ # macOS/Safari
32
+ - script : ' dotnet test --no-build --configuration Release --filter "StandaloneAppTest"'
33
+ workingDirectory : ' src/Components/test/E2ETest'
34
+ displayName : ' Run Blazor tests - macOS/Safari'
35
+ condition : succeededOrFailed()
36
+ env :
37
+ # Secrets need to be explicitly mapped to env variables.
38
+ E2ETESTS_Sauce__Username : ' $(asplab-sauce-labs-username)'
39
+ E2ETESTS_Sauce__AccessKey : ' $(asplab-sauce-labs-access-key)'
40
+ # Set platform/browser configuration.
41
+ E2ETESTS_Sauce__TestName : ' Blazor Daily Tests - macOS/Safari'
42
+ E2ETESTS_Sauce__PlatformName : ' macOS 10.14'
43
+ E2ETESTS_Sauce__BrowserName : ' Safari'
44
+ # Need to explicitly set version here because some older versions don't support timeouts in Safari.
45
+ E2ETESTS_Sauce__SeleniumVersion : ' 3.4.0'
46
+
47
+ # Android/Chrome
48
+ - script : ' dotnet test --no-build --configuration Release --filter "StandaloneAppTest"'
49
+ workingDirectory : ' src/Components/test/E2ETest'
50
+ displayName : ' Run Blazor tests - Android/Chrome'
51
+ condition : succeededOrFailed()
52
+ env :
53
+ # Secrets need to be explicitly mapped to env variables.
54
+ E2ETESTS_Sauce__Username : ' $(asplab-sauce-labs-username)'
55
+ E2ETESTS_Sauce__AccessKey : ' $(asplab-sauce-labs-access-key)'
56
+ # Set platform/browser configuration.
57
+ E2ETESTS_Sauce__TestName : ' Blazor Daily Tests - Android/Chrome'
58
+ E2ETESTS_Sauce__PlatformName : ' Android'
59
+ E2ETESTS_Sauce__PlatformVersion : ' 10.0'
60
+ E2ETESTS_Sauce__BrowserName : ' Chrome'
61
+ E2ETESTS_Sauce__DeviceName : ' Android GoogleAPI Emulator'
62
+ E2ETESTS_Sauce__DeviceOrientation : ' portrait'
63
+ E2ETESTS_Sauce__AppiumVersion : ' 1.9.1'
64
+ artifacts :
65
+ - name : Windows_Logs
66
+ path : artifacts/log/
67
+ publishOnError : true
0 commit comments