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 abbfbf6
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 35 deletions.
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@

[![npm version](https://img.shields.io/npm/v/eslint-plugin-node.svg)](https://www.npmjs.com/package/eslint-plugin-node)
[![Downloads/month](https://img.shields.io/npm/dm/eslint-plugin-node.svg)](http://www.npmtrends.com/eslint-plugin-node)
[![Build Status](https://travis-ci.org/mysticatea/eslint-plugin-node.svg?branch=master)](https://travis-ci.org/mysticatea/eslint-plugin-node)
[![Build Status](https://mysticatea.visualstudio.com/eslint-plugin-node/_apis/build/status/mysticatea.eslint-plugin-node?branchName=master)](https://mysticatea.visualstudio.com/eslint-plugin-node/_build/latest?definitionId=1&branchName=master)
[![Coverage Status](https://codecov.io/gh/mysticatea/eslint-plugin-node/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/eslint-plugin-node)
[![Dependency Status](https://david-dm.org/mysticatea/eslint-plugin-node.svg)](https://david-dm.org/mysticatea/eslint-plugin-node)

Expand Down
84 changes: 84 additions & 0 deletions azure-pipelines.yml
@@ -0,0 +1,84 @@
# 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.10.0"
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) && npm install --no-save async eslint@$(eslint_version)
displayName: Install Packages
- script: npm test
displayName: Test
- script: npm run -s codecov
displayName: Send Coverage

- 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
- script: npm run -s codecov
displayName: Send Coverage

- 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
- script: npm run -s codecov
displayName: Send Coverage

0 comments on commit abbfbf6

Please sign in to comment.