gitlab-ci: switch to x86 -no-accel emulator support

Now that is finally works to some degree at least.
fdroid/ci-images-client@6e7b829346
This commit is contained in:
Hans-Christoph Steiner 2021-02-17 09:44:33 +01:00
parent 6fa5ff6608
commit 8c2fa955ce

View File

@ -27,6 +27,7 @@ stages:
artifacts: artifacts:
name: "${CI_PROJECT_PATH}_${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}" name: "${CI_PROJECT_PATH}_${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}"
paths: paths:
- kernel.log
- logcat.txt - logcat.txt
- app/core* - app/core*
- app/*.log - app/*.log
@ -70,6 +71,10 @@ errorprone:
- cat config/errorprone.gradle >> app/build.gradle - cat config/errorprone.gradle >> app/build.gradle
- ./gradlew -Dorg.gradle.dependency.verification=lenient assembleDebug - ./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 # once these prove stable, the task should be switched to
# connectedCheck to test all the build flavors # connectedCheck to test all the build flavors
.connected-template: &connected-template .connected-template: &connected-template
@ -90,16 +95,14 @@ errorprone:
- wait-for-emulator - wait-for-emulator
- adb devices - adb devices
- adb shell input keyevent 82 & - 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 - if [ $AVD_SDK -lt 25 ] || ! emulator -accel-check; then
export FLAG=-Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.LargeTest; export FLAG=-Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.LargeTest;
fi fi
- ./gradlew connectedFullDebugAndroidTest $FLAG - ./gradlew connectedFullDebugAndroidTest $FLAG
|| ./gradlew connectedFullDebugAndroidTest $FLAG
|| ./gradlew connectedFullDebugAndroidTest $FLAG
|| (adb -e logcat -d > logcat.txt; exit 1)
connected 22 default armeabi-v7a: no-accel 22 default x86:
retry: 1
<<: *test-template <<: *test-template
<<: *connected-template <<: *connected-template
@ -107,15 +110,14 @@ connected 22 default armeabi-v7a:
tags: tags:
- fdroid - fdroid
- kvm - kvm
allow_failure: true
<<: *test-template
<<: *connected-template
connected 26 google_apis x86:
<<: *kvm-template
only: only:
variables: variables:
- $RUN_KVM_JOBS - $RUN_KVM_JOBS
<<: *test-template
<<: *connected-template
kvm 29 microg x86_64:
<<: *kvm-template
deploy_nightly: deploy_nightly:
extends: .base extends: .base