Skip to content

Commit 5d2d90e

Browse files
ci: migrate on azure pipelines
1 parent 509a821 commit 5d2d90e

File tree

5 files changed

+603
-389
lines changed

5 files changed

+603
-389
lines changed

.circleci/config.yml

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

appveyor.yml

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

azure-pipelines.yml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# TODO commitlint
2+
# TODO problem with npm and macos and node 6
3+
# TODO canary
4+
# - npm i -g @webpack-contrib/tag-versions
5+
# npm install webpack@%webpack_version%
6+
# FOR /F %%I in ('compver --name webpack --gte %webpack_version% --lt latest') do SET COMPARED_VERSION_RESULT=%%I
7+
# IF %COMPARED_VERSION_RESULT% NEQ -1 (npm run ci:%job_part%) ELSE (ECHO "Next is older than Latest - Skipping Canary Suite")
8+
#
9+
# if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test || true; fi
10+
# TODO coverage
11+
# name: Submit coverage data to codecov.
12+
# command: bash <(curl -s https://codecov.io/bash)
13+
# when: on_success
14+
15+
trigger:
16+
- master
17+
- next
18+
19+
jobs:
20+
# - job: Lint
21+
# pool:
22+
# vmImage: ubuntu-16.04
23+
# steps:
24+
# - task: NodeTool@0
25+
# inputs:
26+
# versionSpec: ^10.13.0
27+
# displayName: "Install Node.js"
28+
# - script: |
29+
# npm i -g npm@latest
30+
# displayName: "Install latest NPM"
31+
# - script: |
32+
# node -v
33+
# npm -v
34+
# displayName: "Print versions"
35+
# - script: npm ci
36+
# displayName: "Install dependencies"
37+
# - script: npm run lint
38+
# displayName: "Run linting"
39+
# - script: npm run security
40+
# displayName: "Run NPM audit"
41+
# - script: npm run commitlint
42+
# displayName: "Run NPM audit"
43+
44+
# - job: Linux
45+
# dependsOn:
46+
# - lint
47+
# pool:
48+
# vmImage: ubuntu-16.04
49+
# strategy:
50+
# maxParallel: 4
51+
# matrix:
52+
# node-12:
53+
# node_version: ^12.0.0
54+
# node-10:
55+
# node_version: ^10.13.0
56+
# node-8:
57+
# node_version: ^8.9.0
58+
# node-6:
59+
# node_version: ^6.9.0
60+
# steps:
61+
# - task: NodeTool@0
62+
# inputs:
63+
# versionSpec: $(node_version)
64+
# displayName: "Install Node.js $(node_version)"
65+
# - script: npm i -g npm@latest
66+
# displayName: "Install latest NPM"
67+
# - script: |
68+
# node -v
69+
# npm -v
70+
# displayName: "Print versions"
71+
# - script: npm ci
72+
# displayName: "Install dependencies"
73+
# - script: npm run test:coverage -- --ci
74+
# displayName: "Run tests with coverage"
75+
# - task: PublishTestResults@2
76+
# inputs:
77+
# testRunTitle: "Linux with Node.js $(node_version)"
78+
# testResultsFiles: "**/junit.xml"
79+
# condition: succeededOrFailed()
80+
# displayName: "Publish test results"
81+
82+
# - job: macOS
83+
# dependsOn:
84+
# - lint
85+
# pool:
86+
# vmImage: macOS-10.14
87+
# strategy:
88+
# maxParallel: 4
89+
# matrix:
90+
# node-12:
91+
# node_version: ^12.0.0
92+
# node-10:
93+
# node_version: ^10.13.0
94+
# node-8:
95+
# node_version: ^8.9.0
96+
# node-6:
97+
# node_version: ^6.9.0
98+
# steps:
99+
# - task: NodeTool@0
100+
# inputs:
101+
# versionSpec: $(node_version)
102+
# displayName: "Install Node.js $(node_version)"
103+
# - task: Npm@1
104+
# inputs:
105+
# command: custom
106+
# customCommand: i -g npm@latest
107+
# displayName: 'Install latest NPM'
108+
# - script: |
109+
# node -v
110+
# npm -v
111+
# displayName: "Print versions"
112+
# - task: Npm@1
113+
# inputs:
114+
# command: custom
115+
# customCommand: ci
116+
# displayName: 'Install dependencies'
117+
# - script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
118+
# displayName: "Run tests with coverage"
119+
# - task: PublishTestResults@2
120+
# inputs:
121+
# testRunTitle: "Linux with Node.js $(node_version)"
122+
# testResultsFiles: "**/junit.xml"
123+
# condition: succeededOrFailed()
124+
# displayName: "Publish test results"
125+
126+
- job: Windows
127+
# dependsOn:
128+
# - lint
129+
pool:
130+
vmImage: windows-2019
131+
strategy:
132+
maxParallel: 4
133+
matrix:
134+
# node-12:
135+
# node_version: ^12.0.0
136+
# node-10:
137+
# node_version: ^10.13.0
138+
# node-8:
139+
# node_version: ^8.9.0
140+
node-6:
141+
node_version: ^6.9.0
142+
steps:
143+
- task: NodeTool@0
144+
inputs:
145+
versionSpec: $(node_version)
146+
displayName: "Install Node.js $(node_version)"
147+
- task: Npm@1
148+
inputs:
149+
command: custom
150+
customCommand: i -g npm@latest
151+
displayName: 'Install latest NPM'
152+
- script: |
153+
node -v
154+
npm -v
155+
displayName: "Print versions"
156+
- task: Npm@1
157+
inputs:
158+
command: custom
159+
customCommand: ci
160+
displayName: 'Install dependencies'
161+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
162+
displayName: "Run tests with coverage"
163+
- task: PublishTestResults@2
164+
inputs:
165+
testRunTitle: "Linux with Node.js $(node_version)"
166+
testResultsFiles: "**/junit.xml"
167+
condition: succeededOrFailed()
168+
displayName: "Publish test results"

0 commit comments

Comments
 (0)