forked from IgniteUI/igniteui-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
65 lines (51 loc) · 1.87 KB
/
azure-pipelines.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
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
displayName: 'Install Node.js'
- script: npm ci
displayName: 'Install dependencies'
env:
AZURE_PIPELINES: "true"
- script: npm run lint:lib
displayName: 'Run lint'
env:
NODE_OPTIONS: "--max_old_space_size=4096"
- script: npm run build:lib
displayName: 'Build source code and styles'
- script: npm run build:typedoc:en:production
displayName: 'Build typedoc EN'
- script: npm run build:sassdoc:en:production
displayName: 'Build sassdoc EN'
- script: npm run test:lib:azure
displayName: 'Run all tests'
env:
NODE_OPTIONS: "--max_old_space_size=4096"
- script: npm run test:styles
displayName: 'Run styling library tests'
## Use only Github actions for publishing coveralls.io status
# - script: istanbul-combine -d coverage -p none -r lcov -r cobertura coverage/hierarchical-grid/coverage-final.json coverage/tree-grid/coverage-final.json coverage/non-grid/coverage-final.json coverage/grid/coverage-final.json
# displayName: 'Combine coverage results'
# env:
# AZURE_PIPELINES: "true"
# - script: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
# condition: and(succeeded(), eq(variables['system.teamProject'], 'igniteui-angular'))
# displayName: 'Code coverage @ Coveralls'
# env:
# COVERALLS_REPO_TOKEN: $(coveralls.repoToken)
- script: npm run test:schematics
displayName: 'Run migrations & schematics'
- script: npm run test:i18n
displayName: 'Test i18n'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: 'JUnit'
testResultsFiles: '**/TESTS-*.xml'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/coverage'