forked from microsoft/pyright
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move PR validation pipeline to yml, run as matrix (microsoft#135)
- Loading branch information
1 parent
7265905
commit 8fbaed6
Showing
6 changed files
with
903 additions
and
290 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 |
---|---|---|
|
@@ -18,4 +18,4 @@ client/typeshed-fallback/ | |
|
||
junit.xml | ||
coverage/ | ||
combinedcoverageoutput/ | ||
coverage-merged/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
trigger: none | ||
|
||
pr: | ||
autoCancel: true | ||
branches: | ||
include: ['master'] | ||
|
||
strategy: | ||
matrix: | ||
linux: | ||
imageName: 'ubuntu-latest' | ||
mac: | ||
imageName: 'macOS-latest' | ||
windows: | ||
imageName: 'windows-latest' | ||
|
||
pool: | ||
vmImage: $(imageName) | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
displayName: Use Node 12.x | ||
inputs: | ||
versionSpec: '12.x' | ||
|
||
- task: Npm@1 | ||
displayName: npm run package | ||
inputs: | ||
command: 'custom' | ||
customCommand: 'run package' | ||
|
||
- task: Npm@1 | ||
displayName: npm run test:all:pipeline | ||
inputs: | ||
command: 'custom' | ||
customCommand: 'run test:all:pipeline' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: Publish Istanbul report as artifact | ||
inputs: | ||
targetPath: '$(System.DefaultWorkingDirectory)/server/coverage-merged' | ||
artifact: '$(imageName)-server-coverage-merged' | ||
publishLocation: 'pipeline' | ||
|
||
- task: PublishTestResults@2 | ||
displayName: Publish test results | ||
inputs: | ||
testResultsFormat: 'JUnit' | ||
testResultsFiles: '**/junit.xml' | ||
testRunTitle: 'Test results for JavaScript' | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
displayName: Publish coverage results | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/server/coverage-merged/cobertura-coverage.xml' | ||
failIfCoverageEmpty: true |
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
Oops, something went wrong.