Skip to content

Commit b2aecba

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent fde03e2 commit b2aecba

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

azure-pipelines.yml

+16-9
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,21 @@ steps:
2525
inputs:
2626
SonarCloud: 'SonarCloud'
2727
organization: 'axaguildev'
28-
scannerMode: 'MSBuild'
29-
projectKey: 'skizzle'
30-
projectVersion: '1.0.1'
28+
scannerMode: 'CLI'
29+
configMode: 'manual'
30+
cliProjectKey: 'skizzle'
31+
cliProjectName: 'skizzle'
32+
cliProjectVersion: '1.0.1'
33+
cliSources: 'src'
34+
extraProperties: |
35+
# Additional properties that will be passed to the scanner,
36+
# Put one key=value per line, example:
37+
sonar.tests=src
38+
sonar.test.inclusions=src/**/*.test.js
39+
sonar.javascript.lcov.reportPaths=coverage/lcov.info
3140
32-
- script: |
33-
npm install
34-
npm run build
35-
npm run test:coverage
36-
displayName: 'npm install, build and test coverage'
41+
- script: npm install && npm run bootstrap
42+
displayName: 'npm install and bootstrap'
3743

38-
- task: SonarCloudAnalyze@1
44+
- script: npm test -- --coverage
45+
displayName: 'npm run test:coverage'

0 commit comments

Comments
 (0)