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.
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
phases:
|
|
- phase: macOS
|
|
queue:
|
|
name: Hosted macOS Preview
|
|
timeoutInMinutes: 180
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: 8.11.3
|
|
displayName: Install Node.js 8.11.3
|
|
|
|
- script: |
|
|
script/build --code-sign --compress-artifacts
|
|
displayName: Build Atom
|
|
env:
|
|
ATOM_MAC_CODE_SIGNING_CERT_DOWNLOAD_URL: $(ATOM_MAC_CODE_SIGNING_CERT_DOWNLOAD_URL)
|
|
ATOM_MAC_CODE_SIGNING_CERT_PASSWORD: $(ATOM_MAC_CODE_SIGNING_CERT_PASSWORD)
|
|
ATOM_MAC_CODE_SIGNING_KEYCHAIN: $(ATOM_MAC_CODE_SIGNING_KEYCHAIN)
|
|
ATOM_MAC_CODE_SIGNING_KEYCHAIN_PASSWORD: $(ATOM_MAC_CODE_SIGNING_KEYCHAIN_PASSWORD)
|
|
|
|
- script: script/lint
|
|
displayName: Run linter
|
|
|
|
- script: |
|
|
osascript -e 'tell application "System Events" to keystroke "x"' # clear screen saver
|
|
caffeinate -s script/test # Run with caffeinate to prevent screen saver
|
|
env:
|
|
CI: true
|
|
ATOM_GITHUB_DISABLE_KEYTAR: 1
|
|
displayName: Run tests
|
|
|
|
# This step is necessary in the short term due to a bug in the *NIX
|
|
# implementation of the CopyFiles task which scans the entire file
|
|
# system structure just to resolve the glob pattern.
|
|
- script: rm -rf $(Build.SourcesDirectory)/out/*/
|
|
displayName: Delete Intermediate Output
|
|
|
|
- task: CopyFiles@2
|
|
inputs:
|
|
sourceFolder: $(Build.SourcesDirectory)/out
|
|
contents: '*.zip'
|
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
|
displayName: Stage Artifacts
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
PathtoPublish: $(Build.ArtifactStagingDirectory)
|
|
ArtifactName: Binaries
|
|
ArtifactType: Container
|
|
displayName: Upload Artifacts
|