Skip to content

Commit 3fc2c4b

Browse files
ci: migrate on azure pipelines (#1853)
1 parent 6d31984 commit 3fc2c4b

File tree

6 files changed

+555
-721
lines changed

6 files changed

+555
-721
lines changed

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
trigger:
2+
- master
3+
- next
4+
5+
jobs:
6+
- job: Lint
7+
pool:
8+
vmImage: ubuntu-16.04
9+
steps:
10+
- task: NodeTool@0
11+
inputs:
12+
versionSpec: ^10.13.0
13+
displayName: 'Install Node.js'
14+
- task: Npm@1
15+
inputs:
16+
command: custom
17+
customCommand: i -g npm@latest
18+
displayName: 'Install latest NPM'
19+
- script: |
20+
node -v
21+
npm -v
22+
displayName: 'Print versions'
23+
- task: Npm@1
24+
inputs:
25+
command: custom
26+
customCommand: ci
27+
displayName: 'Install dependencies'
28+
- script: npm run lint
29+
displayName: 'Run lint'
30+
31+
- job: Linux
32+
pool:
33+
vmImage: ubuntu-16.04
34+
strategy:
35+
maxParallel: 5
36+
matrix:
37+
node-12:
38+
node_version: ^12.0.0
39+
webpack_version: latest
40+
node-10:
41+
node_version: ^10.13.0
42+
webpack_version: latest
43+
node-8:
44+
node_version: ^8.9.0
45+
webpack_version: latest
46+
node-6:
47+
node_version: ^6.9.0
48+
webpack_version: latest
49+
steps:
50+
- task: NodeTool@0
51+
inputs:
52+
versionSpec: $(node_version)
53+
displayName: 'Install Node.js $(node_version)'
54+
- task: Npm@1
55+
inputs:
56+
command: custom
57+
customCommand: i -g npm@latest
58+
displayName: 'Install latest NPM'
59+
- script: |
60+
node -v
61+
npm -v
62+
displayName: 'Print versions'
63+
- task: Npm@1
64+
inputs:
65+
command: custom
66+
customCommand: ci
67+
displayName: 'Install dependencies'
68+
- script: npm i webpack@$(webpack_version)
69+
displayName: 'Install "webpack@$(webpack_version)"'
70+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
71+
displayName: 'Run tests with coverage'
72+
- task: PublishTestResults@2
73+
inputs:
74+
testRunTitle: 'Linux with Node.js $(node_version)'
75+
testResultsFiles: '**/junit.xml'
76+
condition: succeededOrFailed()
77+
displayName: 'Publish test results'
78+
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
79+
condition: succeededOrFailed()
80+
displayName: 'Submit coverage data to codecov'
81+
82+
- job: macOS
83+
pool:
84+
vmImage: macOS-10.14
85+
strategy:
86+
maxParallel: 5
87+
matrix:
88+
node-12:
89+
node_version: ^12.0.0
90+
webpack_version: latest
91+
node-10:
92+
node_version: ^10.13.0
93+
webpack_version: latest
94+
node-8:
95+
node_version: ^8.9.0
96+
webpack_version: latest
97+
node-6:
98+
node_version: ^6.9.0
99+
webpack_version: latest
100+
steps:
101+
- task: NodeTool@0
102+
inputs:
103+
versionSpec: $(node_version)
104+
displayName: 'Install Node.js $(node_version)'
105+
- task: Npm@1
106+
inputs:
107+
command: custom
108+
customCommand: i -g npm@latest
109+
displayName: 'Install latest NPM'
110+
- script: |
111+
node -v
112+
npm -v
113+
displayName: 'Print versions'
114+
- task: Npm@1
115+
inputs:
116+
command: custom
117+
customCommand: ci
118+
displayName: 'Install dependencies'
119+
- script: npm i webpack@$(webpack_version)
120+
displayName: 'Install "webpack@$(webpack_version)"'
121+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
122+
displayName: 'Run tests with coverage'
123+
- task: PublishTestResults@2
124+
inputs:
125+
testRunTitle: 'Linux with Node.js $(node_version)'
126+
testResultsFiles: '**/junit.xml'
127+
condition: succeededOrFailed()
128+
displayName: 'Publish test results'
129+
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
130+
condition: succeededOrFailed()
131+
displayName: 'Submit coverage data to codecov'
132+
133+
- job: Windows
134+
pool:
135+
vmImage: windows-2019
136+
strategy:
137+
maxParallel: 5
138+
matrix:
139+
node-12:
140+
node_version: ^12.0.0
141+
webpack_version: latest
142+
node-10:
143+
node_version: ^10.13.0
144+
webpack_version: latest
145+
node-8:
146+
node_version: ^8.9.0
147+
webpack_version: latest
148+
node-6:
149+
node_version: ^6.9.0
150+
webpack_version: latest
151+
steps:
152+
- script: 'git config --global core.autocrlf input'
153+
displayName: 'Config git core.autocrlf'
154+
- checkout: self
155+
- task: NodeTool@0
156+
inputs:
157+
versionSpec: $(node_version)
158+
displayName: 'Install Node.js $(node_version)'
159+
- task: Npm@1
160+
inputs:
161+
command: custom
162+
customCommand: i -g npm@latest
163+
displayName: 'Install latest NPM'
164+
- script: |
165+
node -v
166+
npm -v
167+
displayName: 'Print versions'
168+
- task: Npm@1
169+
inputs:
170+
command: custom
171+
customCommand: ci
172+
displayName: 'Install dependencies'
173+
- script: npm i webpack@$(webpack_version)
174+
displayName: 'Install "webpack@$(webpack_version)"'
175+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
176+
displayName: 'Run tests with coverage'
177+
- task: PublishTestResults@2
178+
inputs:
179+
testRunTitle: 'Linux with Node.js $(node_version)'
180+
testResultsFiles: '**/junit.xml'
181+
condition: succeededOrFailed()
182+
displayName: 'Publish test results'
183+
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
184+
condition: succeededOrFailed()
185+
displayName: 'Submit coverage data to codecov'

0 commit comments

Comments
 (0)