#1175 disable emulator until armeabi-v7a support

This commit is contained in:
Sean Mac Gillicuddy 2019-05-24 17:00:05 +01:00
parent 9c55e44d72
commit 1febfd14b2

View File

@ -6,8 +6,8 @@ sudo: required
env: env:
global: global:
- ANDROID_TARGET=android-23 # - ANDROID_TARGET=android-24
- ANDROID_ABI=x86 # - ANDROID_ABI=arm64-v8a
install: install:
- pip install --user 'requests[security]' - pip install --user 'requests[security]'
@ -35,21 +35,21 @@ android:
- build-tools-28.0.3 - build-tools-28.0.3
- android-27 - android-27
- extra-android-m2repository - extra-android-m2repository
- $ANDROID_TARGET # - $ANDROID_TARGET
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET} # - sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
licenses: licenses:
- ".+" - ".+"
script: script:
# - ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport - ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 100M # - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 100M
- emulator -avd test -no-window -no-accel & # - emulator -avd test -no-window &
- android-wait-for-emulator # - android-wait-for-emulator
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v # - adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
- adb shell input keyevent 82 & # unlock screen by pressing menu button # - adb shell input keyevent 82 & # unlock screen by pressing menu button
- adb -e logcat *:D > logcat.log & # - adb -e logcat *:D > logcat.log &
- ./gradlew createKiwixDebugCoverageReport # - ./gradlew createKiwixDebugCoverageReport
- if [$TRAVIS_PULL_REQUEST == “false” ] && [ $TRAVIS_BRANCH == “release” ]; then - if [$TRAVIS_PULL_REQUEST == “false” ] && [ $TRAVIS_BRANCH == “release” ]; then
./gradlew publishKiwixRelease; ./gradlew publishKiwixRelease;
fi fi
@ -59,7 +59,7 @@ after_success:
- ./gradlew testdroidUploadKiwixDebug - ./gradlew testdroidUploadKiwixDebug
after_failure: after_failure:
- export LOG_DIR=home/travis/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX/ - export LOG_DIR = ${TRAVIS_HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX/
- lynx --dump ${LOG_DIR}com.android.builder.testing.ConnectedDevice.html - lynx --dump ${LOG_DIR}com.android.builder.testing.ConnectedDevice.html
- lynx --dump ${LOG_DIR}com.android.builder.testing.html - lynx --dump ${LOG_DIR}com.android.builder.testing.html
- lynx -dump ${LOG_DIR}org.kiwix.kiwixmobile.tests.BasicTest.html; - lynx -dump ${LOG_DIR}org.kiwix.kiwixmobile.tests.BasicTest.html;