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
3971fc6
commit 8da9c84
Showing
5 changed files
with
166 additions
and
20 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 |
---|---|---|
|
@@ -2,4 +2,5 @@ out | |
node_modules | ||
.vscode-test/ | ||
*.vsix | ||
.ionide | ||
.ionide | ||
test-output.xml |
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 |
---|---|---|
@@ -1,25 +1,144 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
pr: | ||
- master | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
jobs: | ||
- job: Linux | ||
pool: | ||
name: ubuntu-latest | ||
demands: npm | ||
strategy: | ||
matrix: | ||
node_10_x: | ||
node_version: 10.x | ||
node_12_x: | ||
node_version: 12.x | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use $(node_version)' | ||
inputs: | ||
versionSpec: $(node_version) | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '10.x' | ||
displayName: 'Install Node.js' | ||
- task: Npm@1 | ||
displayName: 'Install dependencies' | ||
inputs: | ||
verbose: false | ||
command: install | ||
|
||
- script: | | ||
npm install | ||
npm run compile | ||
displayName: 'npm install and build' | ||
- task: Npm@1 | ||
displayName: 'Compile Extension' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run compile' | ||
|
||
- script: | | ||
npm run package -- -o release.vsix | ||
displayName: 'create vsix' | ||
# 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' | ||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish Pipeline Artifact' | ||
inputs: | ||
targetPath: release.vsix | ||
- 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() | ||
|
||
- script: | | ||
npx vsce package -o release.vsix | ||
displayName: 'create vsix' | ||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish Pipeline Artifact' | ||
inputs: | ||
targetPath: release.vsix | ||
|
||
- job: Windows | ||
pool: | ||
name: Hosted VS2017 | ||
demands: npm | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use Node 10.x' | ||
inputs: | ||
versionSpec: 10.x | ||
|
||
- 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' | ||
|
||
- 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() | ||
|
||
- job: macOS | ||
pool: | ||
name: Hosted macOS | ||
demands: npm | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use Node 10.x' | ||
inputs: | ||
versionSpec: 10.x | ||
|
||
- 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' | ||
|
||
- task: Npm@1 | ||
displayName: 'Run tests via npm script' | ||
inputs: | ||
command: custom | ||
verbose: false | ||
customCommand: 'run test:ci' | ||
|
||
- task: PublishTestResults@2 | ||
displayName: 'Publish Test Results' | ||
inputs: | ||
testResultsFiles: '*-results.xml' | ||
testRunTitle: '$(Agent.OS)' | ||
condition: succeededOrFailed() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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