Commit c520ba4b authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Exclude test files from Sonar

parent a3d21ada
......@@ -51,7 +51,14 @@ sonar_scanner:
image: portus.lam.fr/ci-tools/sonar-scanner:latest
stage: sonar
script:
- sonar-scanner -Dsonar.projectKey=anis-client -Dsonar.sources=src -Dsonar.projectVersion=$VERSION -Dsonar.host.url=$SONARQUBE_URL -Dsonar.login=$SONAR_TOKEN -Dsonar.typescript.lcov.reportPaths=./coverage/lcov.info
- sonar-scanner \
-Dsonar.projectKey=anis-client \
-Dsonar.sources=src \
-Dsonar.projectVersion=$VERSION
-Dsonar.host.url=$SONARQUBE_URL
-Dsonar.login=$SONAR_TOKEN
-Dsonar.exclusions=**.spec.ts
-Dsonar.typescript.lcov.reportPaths=./coverage/lcov.info
cache:
paths:
- node_modules
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment