From 8c2fa955ceed0ad2680f49aecc20123ea1748e47 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 17 Feb 2021 09:44:33 +0100 Subject: [PATCH] gitlab-ci: switch to x86 -no-accel emulator support Now that is finally works to some degree at least. fdroid/ci-images-client@6e7b8293461ce66f0e0c271bd822aad5d54068f3 --- .gitlab-ci.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2ca1a8f2a..b6c2f09d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,7 @@ stages: artifacts: name: "${CI_PROJECT_PATH}_${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}" paths: + - kernel.log - logcat.txt - app/core* - app/*.log @@ -70,6 +71,10 @@ errorprone: - cat config/errorprone.gradle >> app/build.gradle - ./gradlew -Dorg.gradle.dependency.verification=lenient assembleDebug +# Run the tests in the emulator. Each step is broken out to run on +# its own since the CI runner can have limited RAM, and the emulator +# can take a while to start. +# # once these prove stable, the task should be switched to # connectedCheck to test all the build flavors .connected-template: &connected-template @@ -90,16 +95,14 @@ errorprone: - wait-for-emulator - adb devices - adb shell input keyevent 82 & + - ./gradlew installFullDebug + - adb shell am start -n org.fdroid.fdroid.debug/org.fdroid.fdroid.views.main.MainActivity - if [ $AVD_SDK -lt 25 ] || ! emulator -accel-check; then export FLAG=-Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.LargeTest; fi - ./gradlew connectedFullDebugAndroidTest $FLAG - || ./gradlew connectedFullDebugAndroidTest $FLAG - || ./gradlew connectedFullDebugAndroidTest $FLAG - || (adb -e logcat -d > logcat.txt; exit 1) -connected 22 default armeabi-v7a: - retry: 1 +no-accel 22 default x86: <<: *test-template <<: *connected-template @@ -107,15 +110,14 @@ connected 22 default armeabi-v7a: tags: - fdroid - kvm - allow_failure: true - <<: *test-template - <<: *connected-template - -connected 26 google_apis x86: - <<: *kvm-template only: variables: - $RUN_KVM_JOBS + <<: *test-template + <<: *connected-template + +kvm 29 microg x86_64: + <<: *kvm-template deploy_nightly: extends: .base