-
Notifications
You must be signed in to change notification settings - Fork 161
/
azure-pipelines.yml
56 lines (45 loc) · 1.71 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
pool:
vmImage: 'ubuntu-latest'
steps:
- script: npm ci
displayName: 'Install dependencies'
env:
AZURE_PIPELINES: "true"
- script: sudo npm install -g istanbul-combine
displayName: 'Install coverage combiner'
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 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'
- 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'