Skip to content

Commit d964f33

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

File tree

6 files changed

+599
-389
lines changed

6 files changed

+599
-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: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
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+
# TODO do test fail and look on output
15+
16+
pr:
17+
- master
18+
- next
19+
20+
jobs:
21+
# - job: Lint
22+
# pool:
23+
# vmImage: ubuntu-16.04
24+
# steps:
25+
# - task: NodeTool@0
26+
# inputs:
27+
# versionSpec: ^10.13.0
28+
# displayName: "Install Node.js"
29+
# - script: |
30+
# npm i -g npm@latest
31+
# displayName: "Install latest NPM"
32+
# - script: |
33+
# node -v
34+
# npm -v
35+
# displayName: "Print versions"
36+
# - script: npm ci
37+
# displayName: "Install dependencies"
38+
# - script: npm run lint
39+
# displayName: "Run linting"
40+
# - script: npm run security
41+
# displayName: "Run NPM audit"
42+
# - script: npm run commitlint
43+
# displayName: "Run NPM audit"
44+
45+
# - job: Linux
46+
# dependsOn:
47+
# - lint
48+
# pool:
49+
# vmImage: ubuntu-16.04
50+
# strategy:
51+
# maxParallel: 4
52+
# matrix:
53+
# node-12:
54+
# node_version: ^12.0.0
55+
# node-10:
56+
# node_version: ^10.13.0
57+
# node-8:
58+
# node_version: ^8.9.0
59+
# node-6:
60+
# node_version: ^6.9.0
61+
# steps:
62+
# - task: NodeTool@0
63+
# inputs:
64+
# versionSpec: $(node_version)
65+
# displayName: "Install Node.js $(node_version)"
66+
# - script: npm i -g npm@latest
67+
# displayName: "Install latest NPM"
68+
# - script: |
69+
# node -v
70+
# npm -v
71+
# displayName: "Print versions"
72+
# - script: npm ci
73+
# displayName: "Install dependencies"
74+
# - script: npm run test:coverage -- --ci
75+
# displayName: "Run tests with coverage"
76+
# - task: PublishTestResults@2
77+
# inputs:
78+
# testRunTitle: "Linux with Node.js $(node_version)"
79+
# testResultsFiles: "**/junit.xml"
80+
# condition: succeededOrFailed()
81+
# displayName: "Publish test results"
82+
83+
- job: macOS
84+
# dependsOn:
85+
# - lint
86+
pool:
87+
vmImage: macOS-10.14
88+
strategy:
89+
maxParallel: 4
90+
matrix:
91+
# node-12:
92+
# node_version: ^12.0.0
93+
node-10:
94+
node_version: ^10.13.0
95+
# node-8:
96+
# node_version: ^8.9.0
97+
# node-6:
98+
# node_version: ^6.9.0
99+
steps:
100+
- task: NodeTool@0
101+
inputs:
102+
versionSpec: $(node_version)
103+
displayName: "Install Node.js $(node_version)"
104+
- task: Npm@1
105+
inputs:
106+
command: custom
107+
customCommand: i -g npm@latest
108+
displayName: 'Install latest NPM'
109+
- script: |
110+
node -v
111+
npm -v
112+
displayName: "Print versions"
113+
- task: Npm@1
114+
inputs:
115+
command: custom
116+
customCommand: ci
117+
displayName: 'Install dependencies'
118+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
119+
displayName: "Run tests with coverage"
120+
- task: PublishTestResults@2
121+
inputs:
122+
testRunTitle: "Linux with Node.js $(node_version)"
123+
testResultsFiles: "**/junit.xml"
124+
condition: succeededOrFailed()
125+
displayName: "Publish test results"
126+
127+
# - job: Windows
128+
# dependsOn:
129+
# - lint
130+
# pool:
131+
# vmImage: windows-2019
132+
# strategy:
133+
# maxParallel: 4
134+
# matrix:
135+
# node-12:
136+
# node_version: ^12.0.0
137+
# node-10:
138+
# node_version: ^10.13.0
139+
# node-8:
140+
# node_version: ^8.9.0
141+
# node-6:
142+
# node_version: ^6.9.0
143+
# steps:
144+
# - task: NodeTool@0
145+
# inputs:
146+
# versionSpec: $(node_version)
147+
# displayName: "Install Node.js $(node_version)"
148+
# - script: npm i -g npm@latest
149+
# displayName: "Install latest NPM"
150+
# - script: |
151+
# node -v
152+
# npm -v
153+
# displayName: "Print versions"
154+
# - script: npm ci
155+
# displayName: "Install dependencies"
156+
# - script: npm run test:coverage -- --ci
157+
# displayName: "Run tests with coverage"
158+
# - task: PublishTestResults@2
159+
# inputs:
160+
# testRunTitle: "Linux with Node.js $(node_version)"
161+
# testResultsFiles: "**/junit.xml"
162+
# condition: succeededOrFailed()
163+
# displayName: "Publish test results"

0 commit comments

Comments
 (0)