-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add Azure Pipelines CI #2299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Azure Pipelines CI #2299
Changes from 2 commits
0c240e0
e0852ef
e283658
0e9394a
8c96cb9
5883b7f
73b0ba4
6538d76
ee50b1b
ebf0aaa
bfe888b
12c6490
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| steps: | ||
| - script: npm i -g npm@$(npm_version) | ||
| displayName: Use legacy npm version $(npm_version) | ||
| condition: ne(variables['npm_version'], '') | ||
|
|
||
| - task: NodeTool@0 | ||
| inputs: | ||
| versionSpec: '$(node_version)' | ||
| displayName: Use Node $(node_version) | ||
phated marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - script: npm install | ||
| displayName: npm install | ||
|
|
||
| - script: npm run coveralls | ||
| env: | ||
| COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN_SECRET) | ||
phated marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| displayName: Run coveralls | ||
| condition: eq(variables['run_coveralls'], true) | ||
|
|
||
| - script: npm test | ||
| displayName: Run tests | ||
| condition: ne(variables['run_coveralls'], true) | ||
|
|
||
| - task: PublishTestResults@2 | ||
| inputs: | ||
| testResultsFiles: '**/xunit.xml' | ||
|
||
| condition: succeededOrFailed() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| trigger: | ||
| - master | ||
| - releases/* | ||
|
|
||
| jobs: | ||
| - job: Test_Linux | ||
| displayName: Run Tests on Linux | ||
| pool: | ||
| vmImage: "Ubuntu 16.04" | ||
| variables: | ||
| run_coveralls: true | ||
| strategy: | ||
| matrix: | ||
| Node_v10: | ||
| node_version: 10 | ||
| Node_v8: | ||
| node_version: 8 | ||
| Node_v6: | ||
| node_version: 6 | ||
| Node_v4: | ||
| node_version: 4 | ||
| Node_v0_12: | ||
| node_version: 0.12 | ||
| Node_v0_10: | ||
| node_version: 0.10 | ||
| steps: | ||
| - template: .azure-pipelines-steps.yml | ||
|
|
||
| - job: Test_Windows | ||
| displayName: Run Tests on Windows | ||
| pool: | ||
| vmImage: vs2017-win2016 | ||
| strategy: | ||
| matrix: | ||
| Node_v10: | ||
| node_version: 10 | ||
| Node_v8: | ||
| node_version: 8 | ||
| Node_v6: | ||
| node_version: 6 | ||
| Node_v4: | ||
| node_version: 4 | ||
| npm_version: 2 | ||
| Node_v0_12: | ||
| node_version: 0.12 | ||
| npm_version: 2 | ||
| Node_v0_10: | ||
| node_version: 0.10 | ||
| npm_version: 2 | ||
| steps: | ||
| - template: .azure-pipelines-steps.yml | ||
|
|
||
| - job: Test_MacOS | ||
| displayName: Run Tests on MacOS | ||
| pool: | ||
| vmImage: macos-10.13 | ||
| strategy: | ||
| matrix: | ||
phated marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Node_v10: | ||
| node_version: 10 | ||
| Node_v4: | ||
| node_version: 4 | ||
| Node_v0_10: | ||
| node_version: 0.10 | ||
| steps: | ||
| - template: .azure-pipelines-steps.yml | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,3 +29,6 @@ node_modules | |
|
|
||
| # Garbage files | ||
| .DS_Store | ||
|
|
||
| # Test results | ||
| xunit.xml | ||


Uh oh!
There was an error while loading. Please reload this page.