Merge branch 'master' into dynamic-dns

pull/392/head
NaiJi ✨ 2023-12-03 11:55:41 +02:00
commit e00c783cb0
2 changed files with 3 additions and 2 deletions

View File

@ -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

3
ci.py
View File

@ -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