This repository has been archived by the owner on Jul 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e374de3
commit 5e19279
Showing
5 changed files
with
77 additions
and
114 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,18 @@ | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use $(node_version)' | ||
inputs: | ||
versionSpec: $(node_version) | ||
|
||
- task: Npm@1 | ||
displayName: 'Install dependencies' | ||
inputs: | ||
verbose: false | ||
command: install | ||
|
||
- task: Npm@1 | ||
displayName: 'Compile Extension' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' |
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,6 @@ | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'Lint' | ||
inputs: | ||
command: custom | ||
customCommand: run lint |
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,11 @@ | ||
steps: | ||
- script: | | ||
npx vsce package -o release.vsix | ||
displayName: 'create vsix' | ||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish Pipeline Artifact' | ||
inputs: | ||
targetPath: release.vsix | ||
condition: and(succeeded(), eq(variables['node_version'], '12.x')) | ||
|
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,24 @@ | ||
steps: | ||
# starts a process that allows the vscode test environment to run | ||
- script: | | ||
set -e | ||
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 & | ||
disown -ar | ||
displayName: 'Start xvfb' | ||
condition: eq(variables['Agent.OS'], 'Linux') | ||
- task: Npm@1 | ||
displayName: 'Run tests via npm script' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run test:ci' | ||
env: | ||
DISPLAY: :10 | ||
|
||
- task: PublishTestResults@2 | ||
displayName: 'Publish Test Results' | ||
inputs: | ||
testResultsFiles: '*-results.xml' | ||
testRunTitle: '$(Agent.OS)' | ||
condition: succeededOrFailed() |
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