2019-04-05 20:13:11 +03:00
steps :
- task : NodeTool@0
inputs :
2020-09-16 21:45:51 +03:00
versionSpec : "12.14.1"
2019-04-05 20:13:11 +03:00
- 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 : |
2019-05-18 05:47:03 +03:00
$LATEST_MS_COMMIT="$(git -C vscode rev-list --tags --max-count=1)"
2019-04-05 20:13:11 +03:00
$LATEST_MS_TAG="$(git -C vscode describe --tags)"
Write-Host "##vso[task.setvariable variable=LATEST_MS_TAG]$LATEST_MS_TAG"
2019-05-18 05:47:03 +03:00
Write-Host "##vso[task.setvariable variable=LATEST_MS_COMMIT]$LATEST_MS_COMMIT"
2019-06-15 07:45:28 +03:00
Write-Host "##vso[task.setvariable variable=BUILD_SOURCEVERSION]$LATEST_MS_COMMIT"
2019-05-18 05:47:03 +03:00
displayName : 'set env LATEST_MS_TAG, LATEST_MS_COMMIT'
2019-04-05 20:13:11 +03:00
- task : PowerShell@2
inputs :
filePath : 'check_tags.ps1'
env :
MAPPED_GITHUB_TOKEN : $(GITHUB_TOKEN)
- powershell : |
bash ./build.sh
displayName : 'go build it!'
- bash : |
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\system-setup\\VSCodeSetup.exe VSCodiumSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi
displayName : 'move the system setup'
- bash : |
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi
displayName : 'move the user setup'
- bash : |
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\archive\\VSCode-win32-$(BUILDARCH).zip VSCodium-win32-$(BUILDARCH)-${LATEST_MS_TAG}.zip; fi
displayName : 'move the zip folder'
2019-04-13 01:11:27 +03:00
- powershell : |
2019-05-18 05:47:03 +03:00
bash ./sum.sh
2019-04-13 02:47:54 +03:00
condition : eq(variables['SHOULD_BUILD'], 'yes')
2019-04-13 01:11:27 +03:00
displayName : 'compute sums'
- task : CopyFiles@2
2019-04-05 20:13:11 +03:00
inputs :
2019-04-13 01:11:27 +03:00
contents : |
VSCodium*.zip
VSCodiumUserSetup*.exe
VSCodiumSetup*.exe
*.sha256
targetFolder : $(Build.ArtifactStagingDirectory)
2019-04-05 20:13:11 +03:00
condition : eq(variables['SHOULD_BUILD'], 'yes')
2019-04-13 01:11:27 +03:00
displayName : 'copy artifacts to staging directory'
2019-04-05 20:13:11 +03:00
- task : PublishBuildArtifacts@1
2019-04-13 01:11:27 +03:00
displayName : 'Publish artifacts'
2019-04-05 20:13:11 +03:00
condition : eq(variables['SHOULD_BUILD'], 'yes')
inputs :
2019-04-13 01:11:27 +03:00
PathtoPublish : $(Build.ArtifactStagingDirectory)
ArtifactName : 'everything'
2019-05-18 05:47:03 +03:00
- bash : ./update_version.sh
displayName : 'update version json'
env :
GITHUB_TOKEN : $(GITHUB_TOKEN)
GITHUB_USERNAME : $(GITHUB_USERNAME)