Merge pull request #1256 from kiwix/feature/macgills/fix-build

Fix build with lower target emulator
This commit is contained in:
macgills 2019-07-03 15:35:57 +01:00 committed by GitHub
commit 8953642eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,9 @@ sudo: required
env:
global:
- ANDROID_TARGET=android-22
# switch glibc to a memory conserving mode
- MALLOC_ARENA_MAX=2
- ANDROID_TARGET=android-21
- ANDROID_ABI=armeabi-v7a
if: type != push OR tag IS present
@ -47,12 +49,10 @@ android:
licenses:
- ".+"
before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 100M
- emulator -avd test -no-audio -no-window &
script:
- ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 100M
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- adb -e logcat *:D > logcat.log &