Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Mobile
Commits
80047f48
Commit
80047f48
authored
Mar 24, 2021
by
Wulan Mantiri
Browse files
Integrate sonarqube
parent
de52b3f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
80047f48
...
...
@@ -9,6 +9,7 @@ cache:
stages
:
-
test
-
sonar-scanner
-
build
test
:
...
...
@@ -18,6 +19,18 @@ test:
script
:
-
yarn test --coverage --watchAll=false --verbose --collectCoverageFrom="src/**/*.tsx"
sonar-scanner
:
image
:
name
:
sonarsource/sonar-scanner-cli:latest
entrypoint
:
[
"
"
]
stage
:
sonar-scanner
script
:
-
sonar-scanner
-Dsonar.host.url=$SONARQUBE_URL
-Dsonar.login=$SONARQUBE_TOKEN
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
-Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
build
:
stage
:
build
before_script
:
...
...
sonar-project.properties
0 → 100644
View file @
80047f48
# SonarScanner properties file
## Path to sources
sonar.sources
=
src
sonar.exclusions
=
src/**/*.ts,src/**/*.test.*
## Path to tests
sonar.javascript.lcov.reportPaths
=
coverage/lcov.info
## Source encoding
sonar.sourceEncoding
=
UTF-8
Doan Andreas Nathanael
@doanandreas18
mentioned in commit
542d7c1f
·
Mar 26, 2021
mentioned in commit
542d7c1f
mentioned in commit 542d7c1f866ef9e7efae45be2bb97f96b69b7c85
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment