Skip to content

Commit a09e6a6

Browse files
authored
Merge pull request #1681 from xtermjs/azure-pipelines
Set up CI with Azure Pipelines
2 parents 74474da + 1edc732 commit a09e6a6

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [![xterm.js logo](logo-full.png)](https://xtermjs.org)
22

3-
[![VSTS Build status](https://xtermjs.visualstudio.com/_apis/public/build/definitions/3e323cf7-5760-460d-af64-ee5675baf366/1/badge)](https://xtermjs.visualstudio.com/xterm.js/_build/index?definitionId=1)
3+
[![Build Status](https://xtermjs.visualstudio.com/xterm.js/_apis/build/status/xtermjs.xterm.js)](https://xtermjs.visualstudio.com/xterm.js/_build/latest?definitionId=3)
44
[![Coverage Status](https://coveralls.io/repos/github/xtermjs/xterm.js/badge.svg?branch=master)](https://coveralls.io/github/xtermjs/xterm.js?branch=master)
55
[![Gitter](https://badges.gitter.im/sourcelair/xterm.js.svg)](https://gitter.im/sourcelair/xterm.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
66
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/xterm/badge?style=rounded)](https://www.jsdelivr.com/package/npm/xterm)

azure-pipelines.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Node.js
2+
# Build a general Node.js application with npm.
3+
# Add steps that analyze code, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/vsts/pipelines/languages/javascript
5+
6+
jobs:
7+
- job: Linux
8+
pool:
9+
vmImage: 'ubuntu-16.04'
10+
steps:
11+
- task: NodeTool@0
12+
inputs:
13+
versionSpec: '8.x'
14+
displayName: 'Install Node.js'
15+
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
16+
inputs:
17+
versionSpec: "1.9.4"
18+
displayName: 'Install Yarn'
19+
- script: |
20+
yarn
21+
displayName: 'Install dependencies and build'
22+
- script: |
23+
yarn mocha
24+
displayName: 'Test'
25+
- script: |
26+
yarn lint
27+
displayName: 'Lint'
28+
- script: |
29+
yarn test-coverage
30+
displayName: 'Generate and publish coverage'
31+
32+
- job: macOS
33+
pool:
34+
vmImage: 'xcode9-macos10.13'
35+
steps:
36+
- task: NodeTool@0
37+
inputs:
38+
versionSpec: '8.x'
39+
displayName: 'Install Node.js'
40+
- script: |
41+
yarn
42+
displayName: 'Install dependencies and build'
43+
- script: |
44+
yarn mocha
45+
displayName: 'Test'
46+
- script: |
47+
yarn lint
48+
displayName: 'Lint'
49+
50+
- job: Windows
51+
pool:
52+
vmImage: 'vs2017-win2016'
53+
steps:
54+
- task: NodeTool@0
55+
inputs:
56+
versionSpec: '8.x'
57+
displayName: 'Install Node.js'
58+
- script: |
59+
yarn
60+
displayName: 'Install dependencies and build'
61+
- script: |
62+
yarn mocha
63+
displayName: 'Test'
64+
- script: |
65+
yarn lint
66+
displayName: 'Lint'

0 commit comments

Comments
 (0)