Skip to content

Commit c9c3fea

Browse files
committed
tests: azure pipelines
tests: azure tests: azure chore: try to fix symlinks chore: try to fix symlinks chore: remove ci opt chore: remove ci opt chore: remove ci opt chore: remove ci opt chore: remove ci opt chore: remove ci opt chore: remove ci opt chore: remove ci opt chore: :) chore: :) chore: :) chore: :) chore: :) chore: :) chore: :) chore: :D
1 parent 70bfbd9 commit c9c3fea

File tree

4 files changed

+122
-143
lines changed

4 files changed

+122
-143
lines changed

azure-pipelines-template.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
jobs:
2+
- job: ${{ parameters.name }}
3+
pool:
4+
vmImage: ${{ parameters.vmImage }}
5+
strategy:
6+
maxParallel: 3
7+
matrix:
8+
node-10:
9+
node_version: ^10.10.0
10+
node-8:
11+
node_version: ^8.12.0
12+
node-6:
13+
node_version: ^6.14.4
14+
steps:
15+
- task: NodeTool@0
16+
displayName: "Install Node.js"
17+
inputs:
18+
versionSpec: $(node_version)
19+
- script: |
20+
npm install -g npm@latest
21+
displayName: "Install npm"
22+
- script: |
23+
npm install
24+
npm run bootstrap
25+
displayName: "Lerna bootstrap"
26+
- script: |
27+
npm run test
28+
displayName: "Run tests"
29+
- task: PublishTestResults@2
30+
displayName: 'Publish Test Results'
31+
inputs:
32+
testResultsFiles: '**junit*.xml'
33+
testRunTitle: TestRun $ {{ parameters.name }} $(node_version)
34+
- task: PublishCodeCoverageResults@1
35+
displayName: 'Publish code coverage results'
36+
inputs:
37+
codeCoverageTool: 'cobertura'
38+
summaryFileLocation: '**/coverage/cobertura-coverage.xml'

azure-pipelines.yml

Lines changed: 16 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,19 @@
11
jobs:
2-
- job: linux
3-
pool:
4-
vmImage: ubuntu-16.04
5-
strategy:
6-
maxParallel: 3
7-
matrix:
8-
node-10:
9-
node_version: ^10.10.0
10-
node-8:
11-
node_version: ^8.12.0
12-
node-6:
13-
node_version: ^6.14.4
14-
steps:
15-
- task: NodeTool@0
16-
displayName: "Install Node.js"
17-
inputs:
18-
versionSpec: $(node_version)
19-
- script: |
20-
npm install -g npm@latest
21-
displayName: "Install npm"
22-
- script: |
23-
npm ci
24-
displayName: "Install dependencies"
25-
- script: |
26-
./node_modules/.bin/lerna bootstrap
27-
displayName: "Lerna bootstrap"
28-
- script: |
29-
npm test
30-
displayName: "Run tests"
31-
- task: PublishTestResults@2
32-
displayName: 'Publish Test Results'
33-
inputs:
34-
testResultsFiles: '**junit*.xml'
35-
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
36-
- task: PublishCodeCoverageResults@1
37-
displayName: 'Publish code coverage results'
38-
inputs:
39-
codeCoverageTool: 'cobertura'
40-
summaryFileLocation: '**/coverage/cobertura-coverage.xml'
41-
- job: macos
42-
pool:
43-
vmImage: "macOS 10.13"
44-
strategy:
45-
maxParallel: 3
46-
matrix:
47-
node-10:
48-
node_version: ^10.10.0
49-
node-8:
50-
node_version: ^8.12.0
51-
steps:
52-
- task: NodeTool@0
53-
displayName: "Install Node.js"
54-
inputs:
55-
versionSpec: $(node_version)
56-
- script: |
57-
npm install -g npm@latest
58-
displayName: "Install npm"
59-
- script: |
60-
npm ci
61-
displayName: "Install dependencies"
62-
- script: |
63-
./node_modules/.bin/lerna bootstrap
64-
displayName: "Lerna bootstrap"
65-
- script: |
66-
npm test
67-
displayName: "Run tests"
68-
- task: PublishTestResults@2
69-
displayName: 'Publish Test Results'
70-
inputs:
71-
testResultsFiles: '**junit*.xml'
72-
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
73-
- task: PublishCodeCoverageResults@1
74-
displayName: 'Publish code coverage results'
75-
inputs:
76-
codeCoverageTool: 'cobertura'
77-
summaryFileLocation: '**/coverage/cobertura-coverage.xml'
78-
- job: windows
79-
pool:
80-
vmImage: vs2017-win2016
81-
strategy:
82-
maxParallel: 3
83-
matrix:
84-
node-8:
85-
node_version: ^8.12.0
86-
node-6:
87-
node_version: ^6.14.4
88-
steps:
89-
- task: NodeTool@0
90-
displayName: "Install Node.js"
91-
inputs:
92-
versionSpec: $(node_version)
93-
- script: |
94-
npm install -g npm@latest
95-
displayName: "Install npm"
96-
- script: |
97-
npm ci
98-
displayName: "Install dependencies"
99-
- script: |
100-
./node_modules/.bin/lerna.cmd bootstrap
101-
displayName: "Lerna bootstrap"
102-
- script: |
103-
npm test
104-
displayName: "Run tests"
105-
- task: PublishTestResults@2
106-
displayName: 'Publish Test Results'
107-
inputs:
108-
testResultsFiles: '**junit*.xml'
109-
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
110-
- task: PublishCodeCoverageResults@1
111-
displayName: 'Publish code coverage results'
112-
inputs:
113-
codeCoverageTool: 'cobertura'
114-
summaryFileLocation: '**coverage/cobertura-coverage.xml'
2+
- template: azure-pipelines-template.yml
3+
parameters:
4+
name: macOS
5+
vmImage: macOS-10.13
6+
7+
- template: azure-pipelines-template.yml
8+
parameters:
9+
name: Linux
10+
vmImage: ubuntu-16.04
11+
12+
# TODO: enable when windows symlinks in monorepos work...
13+
# - template: azure-pipelines-template.yml
14+
# parameters:
15+
# name: Windows
16+
# vmImage: vs2017-win2016
11517

11618
variables:
117-
nproc: 4
19+
nproc: 3

0 commit comments

Comments
 (0)