mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-05 07:34:23 +00:00
add sonarqube
This commit is contained in:
parent
8c16016ac8
commit
8fc7c6f7bd
|
@ -10,7 +10,6 @@ steps:
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
commands:
|
commands:
|
||||||
- ./ci.py --ci-run-tests
|
- ./ci.py --ci-run-tests
|
||||||
- flutter test --machine --coverage > tests.output
|
|
||||||
- sonar-scanner -Dsonar.projectKey=SelfPrivacy-Flutter-App -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN"
|
- sonar-scanner -Dsonar.projectKey=SelfPrivacy-Flutter-App -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN"
|
||||||
environment:
|
environment:
|
||||||
SONARQUBE_TOKEN:
|
SONARQUBE_TOKEN:
|
||||||
|
|
3
ci.py
3
ci.py
|
@ -103,7 +103,8 @@ def ci_build_apk():
|
||||||
"&& flutter build apk --debug")
|
"&& flutter build apk --debug")
|
||||||
|
|
||||||
def ci_run_tests():
|
def ci_run_tests():
|
||||||
podman_online(f"{CONTAINER_HOME}/src", "flutter test")
|
podman_online(f"{CONTAINER_HOME}/src", "flutter test",
|
||||||
|
"&& flutter test --machine --coverage > tests.output")
|
||||||
|
|
||||||
# Arguments
|
# Arguments
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue