add sonarqube

This commit is contained in:
Alya Sirko 2022-09-15 00:05:44 +03:00
parent d8d721bcd3
commit 8d57e1f221
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