forked from michaeljolley/vscode-twitch-themer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazurepipelines.yaml
127 lines (112 loc) · 2.84 KB
/
azurepipelines.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
jobs:
- job: Linux
pool:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent
name: Hosted Ubuntu 1604
demands: npm
strategy:
matrix:
node_8_x:
node_version: 8.x
node_10_x:
node_version: 10.x
steps:
- task: NodeTool@0
displayName: 'Use $(node_version)'
inputs:
versionSpec: $(node_version)
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: false
command: install
- task: Npm@1
displayName: 'Compile TypeScript'
inputs:
command: custom
verbose: false
customCommand: 'run test-compile'
enabled: true
# starts a process that allows the vscode test environment to run
- script: |
set -e
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
disown -ar
displayName: 'Start xvfb'
- script: 'node node_modules/vscode/bin/test'
displayName: 'Run tests via npm script'
env:
DISPLAY: :10
enabled: true
- job: Windows
pool:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent
name: Hosted VS2017
demands: npm
steps:
- task: NodeTool@0
displayName: 'Use Node 10.x'
inputs:
versionSpec: 10.x
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: false
command: install
- task: Npm@1
displayName: 'Compile TypeScript'
inputs:
command: custom
verbose: false
customCommand: 'run test-compile'
enabled: true
- task: Npm@1
displayName: 'Run tests via npm script'
inputs:
command: custom
verbose: false
customCommand: 'run just-test'
env:
DISPLAY: :10
enabled: true
- script: 'node node_modules/vscode/bin/test'
displayName: 'Run tests'
enabled: false
env:
DISPLAY: :10
- job: macOS
pool:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent
name: Hosted macOS
demands: npm
steps:
- task: NodeTool@0
displayName: 'Use Node 10.x'
inputs:
versionSpec: 10.x
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: false
command: install
- task: Npm@1
displayName: 'Compile TypeScript'
inputs:
command: custom
verbose: false
customCommand: 'run test-compile'
enabled: true
- task: Npm@1
displayName: 'Run tests via npm script'
inputs:
command: custom
verbose: false
customCommand: 'run just-test'
enabled: true
- script: |
npx vsce package -o release.vsix
displayName: 'create vsix'
- task: PublishPipelineArtifact@0
displayName: 'Publish Pipeline Artifact'
inputs:
targetPath: release.vsix