forked from webpack/watchpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-polling.yml
79 lines (78 loc) · 2.07 KB
/
azure-pipelines-polling.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
jobs:
- job: Linux
pool:
vmImage: ubuntu-latest
strategy:
maxParallel: 3
matrix:
node-15:
node_version: ^15.0.0
node-14:
node_version: ^14.15.0
node-12:
node_version: ^12.4.0
node-10:
node_version: ^10.10.0
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: "Install Node.js $(node_version)"
- script: |
curl -o- -L https://yarnpkg.com/install.sh | bash
displayName: "Install Yarn"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
node -v
yarn -v
displayName: "Print versions"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn
displayName: "Install dependencies"
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn cover --report lcovonly
env:
WATCHPACK_POLLING: 200
displayName: "Run tests with coverage"
- job: Windows
pool:
vmImage: windows-latest
strategy:
maxParallel: 3
matrix:
node-15:
node_version: ^15.0.0
node-14:
node_version: ^14.15.0
node-12:
node_version: ^12.4.0
node-10:
node_version: ^10.10.0
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: "Install Node.js $(node_version)"
- script: |
npm install --global yarn
displayName: "Install Yarn"
- script: |
set -e
node -v
yarn -v
displayName: "Print versions"
- script: |
set -e
yarn
displayName: "Install dependencies"
- script: |
set -e
yarn cover --report lcovonly
env:
WATCHPACK_POLLING: 200
displayName: "Run tests with coverage"