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