Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
This is a trial to use Azure Pipelines [skip ci]
  • Loading branch information
mysticatea committed Jun 10, 2019
1 parent 7ce77f9 commit eff7156
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions azure-pipelines.yml
@@ -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

0 comments on commit eff7156

Please sign in to comment.