Unverified Commit f7429434 authored by amorphous-1's avatar amorphous-1 Committed by GitHub
Browse files

Merge pull request #2880 from Kaali09/release-sonarcloud

Adding the sonar properties file
parents 461a9d32 326defd9
release-sonarcloud Tags unavailable
No related merge requests found
Showing with 14 additions and 12 deletions
+14 -12
......@@ -8,7 +8,6 @@ jobs:
- run:
name: run build file
command: /bin/bash -x build.sh ${CIRCLE_SHA1} test
test-cases:
working_directory: ~/portal/src/app/client
docker:
......@@ -29,24 +28,18 @@ jobs:
paths: ./node_modules
- run:
name: ng lint and building
command: 'mkdir -p /tmp/logs && ng lint && ng build --prod | tee /tmp/logs/build.log'
command: 'mkdir -p /tmp/logs && ng lint && ng build --prod | tee /tmp/logs/build.log'
- run:
name: Executing test cases
command: 'npm run test-coverage | tee /tmp/logs/test_cases.log'
- run:
name: Executing desktop test cases
command: 'npm run desktop-test-coverage | tee /tmp/logs/desktop_test_cases.log'
name: install sonar scanner
command: npm install -g sonarqube-scanner
- run:
name: Publishing report to Codacy
command: 'npm install -g codacy-coverage && cat ./coverage/lcov.info | codacy-coverage '
when: always
- store_artifacts:
path: /tmp/logs
destination: logs
name: run sonar scanner
command: 'cd ~/portal && sonar-scanner'
workflows:
version: 2
build_and_test:
jobs:
#- build
- test-cases
sonar.projectName=SunbirdEd-portal
sonar.language=ts
sonar.sources=src/app/client/src
#sonar.tests=src/app/client/src/app/
sonar.typescript.lcov.reportPaths=/root/portal/src/app/client/coverage/lcov.info
sonar.projectKey=Sunbird-Ed_SunbirdEd-portal
sonar.host.url=https://sonarcloud.io
sonar.organization=sunbird-ed
sonar.projectVersion=1.0
Supports Markdown
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