forked from stream-labs/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
72 lines (53 loc) · 1.81 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
trigger:
- staging
jobs:
- job: Tests
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 --frozen-lockfile --check-files
displayName: 'Install Dependencies'
- script: 'yarn lint'
displayName: 'TSLint'
- script: 'yarn compile:ci'
displayName: 'Compile Assets'
- script: 'yarn test-flaky'
displayName: 'Run Tests'
env:
SLOBS_TEST_USER_POOL_TOKEN: $(userPoolToken)
CI: true
BROWSER_SOURCE_HARDWARE_ACCELERATION: 'OFF'
SLOBS_TEST_STREAM_KEY: $(twitchStreamKey)
- job: Screenshots
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 --frozen-lockfile --check-files
displayName: 'Install Dependencies'
- script: 'yarn screentest'
displayName: 'Snapshot testing'
env:
CI: true
BROWSER_SOURCE_HARDWARE_ACCELERATION: 'OFF'
SLOBS_TEST_USER_POOL_TOKEN: $(userPoolToken)
STREAMLABS_BOT_ID: $(streamlabsBotId)
STREAMLABS_BOT_KEY: $(streamlabsBotKey)
AWS_BUCKET: $(awsBucket)
AWS_ACCESS_KEY: $(awsAccessKey)
AWS_SECRET_KEY: $(awsSecretKey)
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'SnapshotsResults'
targetPath: $(Build.SourcesDirectory)/test-dist/screentest