add sonarqube

Alya Sirko 2022-09-15 00:05:44 +03:00
parent 8c16016ac8
commit 8fc7c6f7bd
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,6 @@ steps:
- name: Run Tests
commands:
- ./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"
environment:
SONARQUBE_TOKEN:

3
ci.py
View File

@ -103,7 +103,8 @@ def ci_build_apk():
"&& flutter build apk --debug")
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