48 строки
1.6 KiB
YAML
48 строки
1.6 KiB
YAML
steps:
|
|
- task: UseNode@1
|
|
inputs:
|
|
version: '12.x'
|
|
|
|
- template: apple-droid-node-patching.yml
|
|
parameters:
|
|
apply_office_patches: true
|
|
|
|
# This is currently required as the command task (strangely) always runs elevated ..
|
|
# which makes all the files touched by the above patching step unreadable by following non-command tasks without sudo.
|
|
# This makes all the files readable.
|
|
- task: CmdLine@2
|
|
displayName: chmod
|
|
inputs:
|
|
script: chmod -R +rw .
|
|
|
|
# Install NuGet
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: mkdir $(System.DefaultWorkingDirectory)/nuget-bin/ && curl -o $(System.DefaultWorkingDirectory)/nuget-bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
|
|
|
- task: CmdLine@2
|
|
displayName: "Rename package to react-native"
|
|
inputs:
|
|
script: node .ado/renamePackageForOffice.js
|
|
|
|
- task: CmdLine@2
|
|
displayName: npm install
|
|
inputs:
|
|
script: npm install
|
|
|
|
- task: CmdLine@2
|
|
displayName: Bump canary package version
|
|
inputs:
|
|
script: node scripts/bump-oss-version.js --nightly
|
|
condition: eq(variables['Build.SourceBranchName'], 'master')
|
|
|
|
- task: CmdLine@2
|
|
displayName: nuget restore
|
|
inputs:
|
|
script: mono $(System.DefaultWorkingDirectory)/nuget-bin/nuget.exe restore $(System.DefaultWorkingDirectory)/ReactAndroid/packages.config -PackagesDirectory $(System.DefaultWorkingDirectory)/ReactAndroid/packages/ -Verbosity Detailed -NonInteractive
|
|
|
|
- task: CmdLine@2
|
|
displayName: Setup Build Dependencies
|
|
inputs:
|
|
script: chmod +x .ado/setup_droid_deps.sh && .ado/setup_droid_deps.sh
|