From e2692330574752180a2c44978cd5487e67ba730d Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sun, 3 Dec 2023 04:04:00 +0300 Subject: [PATCH 1/2] ci: Fix test run --- ci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci.py b/ci.py index b2403bfe..72339c3a 100755 --- a/ci.py +++ b/ci.py @@ -179,7 +179,8 @@ def ci_build_apk(): "&& flutter build apk --flavor nightly") def ci_run_tests(): - podman_online(f"{CONTAINER_HOME}/src", "flutter test", + podman_online(f"{CONTAINER_HOME}/src", "chown -R $(id -u):$(id -g) /tmp/gradle /tmp/flutter_pub_cache", + "&& flutter test", "&& flutter test --machine --coverage > tests.output") # Arguments From 9b9d325a098d2b83324c5d945042c44d57fbdfab Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sun, 3 Dec 2023 05:27:07 +0300 Subject: [PATCH 2/2] ci: Disable sonarqube for now as it uses Dart 2.17.5 for reasons unknown --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8ea23a42..0cd7e197 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - name: Run Tests commands: - ./ci.py --ci-run-tests - - 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: SONARQUBE_TOKEN: from_secret: SONARQUBE_TOKEN