From 8d57e1f221783c0d904a33c0095a8334d861f07a Mon Sep 17 00:00:00 2001 From: Alya Sirko Date: Thu, 15 Sep 2022 00:05:44 +0300 Subject: [PATCH] add sonarqube --- .drone.yml | 1 - ci.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 37c6c08d..d031c9c5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/ci.py b/ci.py index a4ac9634..fe2de71d 100755 --- a/ci.py +++ b/ci.py @@ -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