Skip to content

Commit 4b413eb

Browse files
committed
Integrate Azure Pipelines CI
1 parent be13fe5 commit 4b413eb

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

azure-pipelines.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# -----------------------------------------------------------------------------------------------
2+
# Copyright (c) Red Hat, Inc. All rights reserved.
3+
# Licensed under the MIT License. See LICENSE file in the project root for license information.
4+
# -----------------------------------------------------------------------------------------------
5+
6+
jobs:
7+
- job: Windows
8+
pool:
9+
name: Hosted VS2017
10+
demands: npm
11+
steps:
12+
- task: NodeTool@0
13+
displayName: 'Use Node 10.x'
14+
inputs:
15+
versionSpec: 10.16.0
16+
- task: Npm@1
17+
displayName: 'Install dependencies'
18+
inputs:
19+
verbose: false
20+
- script: |
21+
npm install -g typescript --save-dev
22+
npm install
23+
npm run vscode:prepublish
24+
displayName: 'npm install, run prepublish'
25+
- script: |
26+
npm test --silent
27+
displayName: 'Run tests'
28+
- script: |
29+
node node_modules/codecov/bin/codecov -f coverage/coverage-final.json -t $(CODECOV_TOKEN)
30+
displayName: 'Upload coverage to codecov.io'
31+
- job: macOS
32+
pool:
33+
name: Hosted macOS
34+
demands: npm
35+
steps:
36+
- task: NodeTool@0
37+
displayName: 'Use Node 10.x'
38+
inputs:
39+
versionSpec: 10.16.0
40+
- task: Npm@1
41+
displayName: 'Install dependencies'
42+
inputs:
43+
verbose: true
44+
- script: |
45+
npm run vscode:prepublish
46+
displayName: 'npm install, run prepublish'
47+
- script: |
48+
npm test --silent
49+
displayName: 'Run tests'
50+
- script: |
51+
node node_modules/codecov/bin/codecov -f coverage/coverage-final.json -t $(CODECOV_TOKEN)
52+
displayName: 'Upload coverage to codecov.io'
53+
- job: Linux
54+
pool:
55+
name: Hosted Ubuntu 1604
56+
steps:
57+
- task: NodeTool@0
58+
displayName: 'Use Node 10.x'
59+
inputs:
60+
versionSpec: 10.16.0
61+
- task: Npm@1
62+
displayName: 'Install dependencies'
63+
inputs:
64+
verbose: true
65+
- script: |
66+
npm run vscode:prepublish
67+
displayName: 'npm install, run prepublish'
68+
- script: |
69+
set -e
70+
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
71+
disown -ar
72+
displayName: 'Start xvfb'
73+
- script: |
74+
npm test --silent
75+
displayName: 'Run tests'
76+
env:
77+
DISPLAY: :10
78+
- script: |
79+
node node_modules/codecov/bin/codecov -f coverage/coverage-final.json -t $(CODECOV_TOKEN)
80+
displayName: 'Upload coverage to codecov.io'

0 commit comments

Comments
 (0)