forked from microsoft/react-native-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
72 lines (58 loc) · 1.7 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
# Universal Windows Platform
# Build a Universal Windows Platform project using Visual Studio.
# Add steps that test and distribute an app, save build artifacts, and more:
# https://aka.ms/yaml
trigger:
- main
pr:
- main
- "v*"
variables:
BuildLogDirectory: $(Build.BinariesDirectory)\x64\BuildLogs
# AgentPool.Medium: rnw-pool-4
# AgentPool.Large: windevbuildagents
pool: windevbuildagents
steps:
- checkout: self
clean: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: ">=5.8.0"
- task: NodeTool@0
displayName: Installing Node
inputs:
versionSpec: '14.x'
- task: CmdLine@2
displayName: Installing Yarm
inputs:
script: npm install -g yarn
- task: NuGetCommand@2
displayName: NuGet restore
inputs:
command: restore
restoreSolution: windows/rngallery.sln
verbosityRestore: Detailed
- task: CmdLine@2
displayName: midgard-yarn (faster yarn install)
inputs:
script: npx [email protected] --pure-lockfile
- task: CmdLine@2
displayName: Lint and Type Checks
inputs:
script: yarn tsc | yarn lint
- task: CmdLine@2
displayName: Build project (Release)
timeoutInMinutes: 60
inputs:
script: npx --no-install react-native run-windows --arch x64 --no-deploy --logging --buildLogDirectory $BuildLogDirectory\Release --release
- task: CmdLine@2
displayName: Build project (Debug)
timeoutInMinutes: 60
inputs:
script: npx react-native run-windows --arch x64 --no-deploy --logging --buildLogDirectory $BuildLogDirectory\Debug
- task: PublishBuildArtifacts@1
displayName: Upload build logs
condition: succeededOrFailed()
inputs:
pathtoPublish: $BuildLogDirectory
artifactName: 'Build logs - $(Agent.JobName)-$(System.JobAttempt)'