-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Chore: Setup continuous integration appveyor & azure (#31)
* Added: azure pipeline build.yml * Added: build artifact using azure
- Loading branch information
1 parent
7403121
commit 1b6de45
Showing
1 changed file
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
variables: | ||
system.debug: true | ||
jobs: | ||
- job: Windows | ||
pool: | ||
name: Hosted VS2017 | ||
demands: npm | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use Node 8.x' | ||
inputs: | ||
versionSpec: 8.x | ||
- task: Npm@1 | ||
displayName: 'Install dependencies' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'Compile sources' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- script: 'node node_modules/vscode/bin/test' | ||
displayName: 'Run tests' | ||
- script: 'npm install -g vsce && vsce package' | ||
displayName: 'Build artifact' | ||
- task: CopyFiles@2 | ||
inputs: | ||
contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: vs-picgo-dev-build-Windows | ||
|
||
- job: macOS | ||
pool: | ||
name: Hosted macOS | ||
demands: npm | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use Node 8.x' | ||
inputs: | ||
versionSpec: 8.x | ||
- task: Npm@1 | ||
displayName: 'Install dependencies' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'Compile sources' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- script: 'node node_modules/vscode/bin/test' | ||
displayName: 'Run tests' | ||
- script: 'npm install -g vsce && vsce package' | ||
displayName: 'Build artifact' | ||
- task: CopyFiles@2 | ||
inputs: | ||
contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: vs-picgo-dev-build-macOS | ||
- job: Linux | ||
pool: | ||
name: Hosted Ubuntu 1604 | ||
demands: npm | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use Node 8.x' | ||
inputs: | ||
versionSpec: 8.x | ||
- task: Npm@1 | ||
displayName: 'Install dependencies' | ||
inputs: | ||
verbose: false | ||
- task: Npm@1 | ||
displayName: 'Compile sources' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
- script: | | ||
set -e | ||
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 & | ||
disown -ar | ||
displayName: 'Start xvfb' | ||
- script: 'node node_modules/vscode/bin/test' | ||
displayName: 'Run tests' | ||
env: | ||
DISPLAY: :10 | ||
- script: 'npm install -g vsce && vsce package' | ||
displayName: 'Build artifact' | ||
- task: CopyFiles@2 | ||
inputs: | ||
contents: '*.vsix' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: vs-picgo-dev-build-Linux | ||
trigger: | ||
- master | ||
- dev | ||
- dev-dora | ||
- dev-spades |