-
Notifications
You must be signed in to change notification settings - Fork 194
/
azure-pipelines.yml
68 lines (56 loc) · 1.58 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
trigger: none
pr:
- master
pool:
vmImage: 'windows-2019'
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
steps:
- checkout: self
clean: true
lfs: false
submodules: false
persistCredentials: false
- task: PowerShell@2
displayName: Install Visual Studio dependencies
inputs:
targetType: filePath
filePath: fixtures/react_native_windows_e2e_app/scripts/Install-VsFeatures.ps1
arguments:
-Components "Microsoft.VisualStudio.ComponentGroup.UWP.VC.v141"
-Cleanup:$true
- task: PowerShell@2
displayName: List Visual Studio Components
inputs:
targetType: filePath
filePath: fixtures/react_native_windows_e2e_app/scripts/VSComponentList.ps1
- task: CmdLine@2
displayName: Install Haul dependencies
inputs:
script: yarn install --frozen-lockfile
- task: CmdLine@2
displayName: Install RNW E2E Test App dependencies
inputs:
script: yarn install --frozen-lockfile
workingDirectory: fixtures/react_native_windows_e2e_app
- task: CmdLine@2
displayName: Create bundle
inputs:
script: yarn run build:bundle
workingDirectory: fixtures/react_native_windows_e2e_app
- task: CmdLine@2
displayName: run-windows
inputs:
script: yarn run start:app --logging
workingDirectory: fixtures/react_native_windows_e2e_app
- task: PowerShell@2
displayName: Wait for app to launch
inputs:
targetType: inline # filePath | inline
script: |
Start-Sleep -Seconds 10
- task: CmdLine@2
displayName: Run tests
inputs:
script: yarn run test --forceExit
workingDirectory: fixtures/react_native_windows_e2e_app