59 lines
2.1 KiB
YAML
59 lines
2.1 KiB
YAML
pool:
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
steps:
|
|
- script: |
|
|
choco install jq
|
|
displayName: 'install jq from choco'
|
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
|
|
displayName: 'Install Yarn'
|
|
- task: UsePythonVersion@0
|
|
displayName: 'Use Python 2.x'
|
|
inputs:
|
|
versionSpec: 2.x
|
|
- task: ShellScript@2
|
|
displayName: 'get VSCode sources'
|
|
inputs:
|
|
scriptPath: get_repo.sh
|
|
- powershell: |
|
|
$LATEST_MS_TAG="$(git -C vscode describe --tags)"
|
|
Write-Host "##vso[task.setvariable variable=LATEST_MS_TAG]$LATEST_MS_TAG"
|
|
displayName: 'set env LATEST_MS_TAG'
|
|
- task: PowerShell@2
|
|
inputs:
|
|
filePath: 'check_tags.ps1'
|
|
env:
|
|
MAPPED_GITHUB_TOKEN: $(GITHUB_TOKEN)
|
|
- script: |
|
|
git -C vscode status
|
|
displayName: 'vscode status'
|
|
- powershell: |
|
|
bash ./build.sh
|
|
displayName: 'go build it!'
|
|
- bash: |
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-x64\\system-setup\\VSCodeSetup.exe VSCodiumSetup-x64-${LATEST_MS_TAG}.exe; fi
|
|
displayName: 'move the system setup'
|
|
- bash: |
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-x64\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-x64-${LATEST_MS_TAG}.exe; fi
|
|
displayName: 'move the user setup'
|
|
- bash: |
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-x64\\archive\\VSCode-win32-x64.zip VSCodium-win32-x64-${LATEST_MS_TAG}.zip; fi
|
|
displayName: 'move the zip folder'
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Publish artifacts: system-setup'
|
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
inputs:
|
|
PathtoPublish: 'VSCodiumSetup-x64-$(LATEST_MS_TAG).exe'
|
|
ArtifactName: 'system_setup'
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Publish artifacts: user-setup'
|
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
inputs:
|
|
PathtoPublish: 'VSCodiumUserSetup-x64-$(LATEST_MS_TAG).exe'
|
|
ArtifactName: 'user_setup'
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'Publish artifacts: archive'
|
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
inputs:
|
|
PathtoPublish: 'VSCodium-win32-x64-$(LATEST_MS_TAG).zip'
|
|
ArtifactName: 'archive'
|