mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
This change adds automation for producing nightly Atom releases using VSTS CI. Most of the changes are just slight modifications to Atom's existing build scripts to produce another build channel and publish those artifacts in a way that can be installed and updated when new releases are available.
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
phases:
|
|
- phase: Windows
|
|
queue:
|
|
name: Hosted
|
|
timeoutInMinutes: 180
|
|
parallel: 2
|
|
matrix:
|
|
x64:
|
|
buildArch: x64
|
|
# TODO: x86 is currently not supported on VSTS
|
|
# x86:
|
|
# buildArch: x86
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: 8.11.3
|
|
displayName: Install Node.js 8.11.3
|
|
|
|
- script: |
|
|
IF NOT EXIST C:\tmp MKDIR C:\tmp
|
|
SET SQUIRREL_TEMP=C:\tmp
|
|
script\build.cmd --create-windows-installer --code-sign --compress-artifacts
|
|
env:
|
|
ATOM_WIN_CODE_SIGNING_CERT_DOWNLOAD_URL: $(ATOM_WIN_CODE_SIGNING_CERT_DOWNLOAD_URL)
|
|
ATOM_WIN_CODE_SIGNING_CERT_PASSWORD: $(ATOM_WIN_CODE_SIGNING_CERT_PASSWORD)
|
|
displayName: Build Atom
|
|
|
|
- script: script\lint.cmd
|
|
displayName: Run linter
|
|
|
|
- script: script\test.cmd
|
|
env:
|
|
CI: true
|
|
displayName: Run tests
|
|
|
|
- task: CopyFiles@2
|
|
inputs:
|
|
sourceFolder: $(Build.SourcesDirectory)/out
|
|
contents: '?(*.exe|*.zip|*.nupkg|RELEASES*)'
|
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
|
displayName: Stage Artifacts
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
PathtoPublish: $(Build.ArtifactStagingDirectory)
|
|
ArtifactName: Binaries
|
|
ArtifactType: Container
|
|
displayName: Upload Artifacts
|