-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
71 lines (56 loc) · 1.53 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
66
67
68
69
70
71
trigger:
- develop
- master
pool:
name: Pobuca Connect MPN Agents
demands:
- Agent.OS -equals Linux
variables:
- group: XSC Coverage API Keys
steps:
- task: NodeTool@0
displayName: "Use Node 10.x"
inputs:
versionSpec: 10.x
- script: npm i
displayName: npm i
- script: npm run setSonarqubeVersion
displayName: npm run setSonarqubeVersion
- script: npm run build
displayName: build
- script: npm run test:log
displayName: npm run test:log
- script: npm test
displayName: npm test
- task: SonarQubePrepare@4
inputs:
SonarQube: 'Pieflow Sonar'
scannerMode: 'CLI'
configMode: 'file'
- task: SonarQubeAnalyze@4
- task: SonarQubePublish@4
inputs:
pollingTimeoutSec: '300'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: "test-results.xml"
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/*coverage.xml"
reportDirectory: "$(System.DefaultWorkingDirectory)/**/coverage"
- task: CopyFiles@2
inputs:
contents: |
dist/**
bin/**
package.json
.npmignore
README.md
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: XSCPackage