Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a trial to use Azure Pipelines [skip ci]
- Loading branch information
1 parent
7ce77f9
commit eff7156
Showing
1 changed file
with
78 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,78 @@ | ||
# Node.js | ||
# Build a general Node.js project with npm. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | ||
|
||
trigger: | ||
- master | ||
|
||
jobs: | ||
- job: lint | ||
displayName: Lint code | ||
pool: | ||
vmImage: Ubuntu-16.04 | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: Install Node.js | ||
inputs: | ||
versionSpec: 12.x | ||
- script: npm install | ||
displayName: Install packages | ||
- script: npm run -s lint | ||
displayName: Lint code | ||
|
||
- job: tests_on_linux | ||
displayName: Test on Linux | ||
pool: | ||
vmImage: 'Ubuntu-16.04' | ||
strategy: | ||
matrix: | ||
node_12_and_eslint_6: | ||
node_version: 12.x | ||
eslint_version: ^6.0.0-rc.0 | ||
node_12_and_eslint_5: | ||
node_version: 12.x | ||
eslint_version: ^5.16.0 | ||
node_10: | ||
node_version: 10.x | ||
eslint_version: ^5.16.0 | ||
node_8: | ||
node_version: 8.x | ||
eslint_version: ^5.16.0 | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: Install Node.js $(node_version) | ||
inputs: | ||
versionSpec: $(node_version) | ||
- script: npm install; npm install --no-save async eslint@$(eslint_version) | ||
displayName: Install packages | ||
- script: npm test | ||
displayName: Test | ||
|
||
- job: tests_on_windows | ||
displayName: Test on Windows | ||
pool: | ||
vmImage: 'Windows-2019' | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: Install Node.js | ||
inputs: | ||
versionSpec: 12.x | ||
- script: npm install; npm install --no-save async | ||
displayName: Install packages | ||
- script: npm test | ||
displayName: Test | ||
|
||
- job: tests_on_macos | ||
displayName: Test on macOS | ||
pool: | ||
vmImage: 'macOS-10.14' | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: Install Node.js | ||
inputs: | ||
versionSpec: 12.x | ||
- script: npm install; npm install --no-save async | ||
displayName: Install packages | ||
- script: npm test | ||
displayName: Test |