Files
atom/script/vsts/windows.yml
David Wilson 34e37f3159 Enable automated nightly Atom releases
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.
2018-06-18 21:01:19 -07:00

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