-
Notifications
You must be signed in to change notification settings - Fork 703
/
azure-pipelines.yml
87 lines (61 loc) · 2.08 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
trigger:
- staging
- master
variables:
CI: true
jobs:
- job: Test
pool:
name: 'Default'
workspace:
clean: resources
strategy:
parallel: 4
steps:
- powershell: echo "IP for RDP connections:" $(Invoke-RestMethod ipinfo.io/ip)
displayName: 'Get RDP address'
- powershell: Set-DisplayResolution -Width 1920 -Height 1080 -Force
displayName: 'Setup Screen Resolution'
- script: yarn install --immutable 2>&1
displayName: 'Install Dependencies'
- script: node node_modules/electron/install.js
displayName: 'Install Electron'
- script: 'yarn ci:compile'
displayName: 'Compile Assets'
- script: 'yarn ci:tests'
displayName: 'Run Tests'
env:
SLOBS_TEST_USER_POOL_TOKEN: $(userPoolToken)
BROWSER_SOURCE_HARDWARE_ACCELERATION: 'OFF'
SLOBS_TEST_STREAM_KEY: $(twitchStreamKey)
SLOBS_TEST_RUN_CHUNK: "$(System.JobPositionInPhase)/$(System.TotalJobsInPhase)"
- job: Check_eslint_and_strict_nulls_regression
pool:
name: 'Default'
workspace:
clean: resources
steps:
- powershell: echo "IP for RDP connections:" $(Invoke-RestMethod ipinfo.io/ip)
displayName: 'Get RDP address'
- powershell: Set-DisplayResolution -Width 1920 -Height 1080 -Force
displayName: 'Setup Screen Resolution'
- script: yarn install --immutable 2>&1
displayName: 'Install Dependencies'
- script: 'yarn eslint'
displayName: 'ESLint'
- script: 'yarn compile:strictnulls'
displayName: 'Check regressions in files with strictNullChecks'
- job: macOS
pool:
vmImage: macOS-latest
workspace:
clean: resources
steps:
- script: yarn install --immutable --network-timeout 1000000 2>&1
displayName: 'Install Dependencies'
- script: node node_modules/electron/install.js
displayName: 'Install Electron'
- script: 'yarn eslint'
displayName: 'ESLint'
- script: 'yarn ci:compile'
displayName: 'Compile Assets'