mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 20:24:03 -04:00
#1175 try workaround for no harware accel
This commit is contained in:
parent
0cdd84636b
commit
e478c5bb9b
20
.travis.yml
20
.travis.yml
@ -6,8 +6,8 @@ sudo: required
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- ANDROID_TARGET=android-24
|
- ANDROID_TARGET=android-21
|
||||||
- ANDROID_ABI=arm64-v8a
|
- ANDROID_ABI=x86_64
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --user 'requests[security]'
|
- pip install --user 'requests[security]'
|
||||||
@ -39,24 +39,18 @@ licenses:
|
|||||||
script:
|
script:
|
||||||
# - ./gradlew assembleKiwixDebug jacocoTestKiwixDebugUnitTestReport
|
# - ./gradlew assembleKiwixDebug jacocoTestKiwixDebugUnitTestReport
|
||||||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
||||||
- emulator -avd test -no-skin -no-window -logcat *:e &
|
- emulator -avd test -no-skin -no-window -no-accel -gpu swiftshader --no-boot-anim &
|
||||||
- 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
|
||||||
- ./gradlew createKiwixDebugCoverageReport
|
- ./gradlew createKiwixDebugCoverageReport
|
||||||
- if [ "$TRAVIS_BRANCH" == "release" ];
|
- if [ "$TRAVIS_BRANCH" == "release" ];then
|
||||||
then ./gradlew publishKiwixRelease; fi
|
./gradlew publishKiwixRelease;
|
||||||
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
- ./gradlew testdroidUploadKiwixDebug
|
- ./gradlew testdroidUploadKiwixDebug
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- export MY_MOD="app"
|
- echo "====================="; cat ${HOME}/home/travis/build/kiwix/kiwix-android/app/build/reports/androidTests/connected/flavors/KIWIX/index.html;
|
||||||
- export MY_LOG_DIR="${HOME}/${MY_MOD}/build/outputs/reports/androidTests/connected/"
|
|
||||||
- pwd && cd "${MY_LOG_DIR:-.}" && pwd && ls -al
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get install -qq lynx && lynx --dump index.html > myIndex.log
|
|
||||||
- lynx --dump com.android.builder.testing.ConnectedDevice.html > myConnectedDevice.log
|
|
||||||
- lynx --dump com.android.builder.testing.html > myTesting.log
|
|
||||||
- for file in *.log; do echo "$file"; echo "====================="; cat "$file"; done || true
|
|
Loading…
x
Reference in New Issue
Block a user