Fakultas Ilmu Komputer UI

Commit 0587247c authored by Doan Andreas Nathanael's avatar Doan Andreas Nathanael
Browse files

Merge branch 'staging' of...

Merge branch 'staging' of https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2021/DD/pt-gizi-sehat-dietela/dietela-mobile into staging
parents 3fa22260 e411e880
......@@ -9,6 +9,7 @@ cache:
stages:
- test
- sonar-scanner
- build
test:
......@@ -17,6 +18,21 @@ test:
- yarn install
script:
- yarn test --coverage --watchAll=false --verbose --collectCoverageFrom="src/**/*.tsx"
artifacts:
paths:
- coverage
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
......
# 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
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