Skip to content

Commit

Permalink
#1175 try workaround for no harware accel
Browse files Browse the repository at this point in the history
  • Loading branch information
BBT-SeanMacGillicuddy committed May 24, 2019
1 parent 0cdd846 commit e478c5b
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ sudo: required

env:
global:
- ANDROID_TARGET=android-24
- ANDROID_ABI=arm64-v8a
- ANDROID_TARGET=android-21
- ANDROID_ABI=x86_64

install:
- pip install --user 'requests[security]'
Expand Down Expand Up @@ -39,24 +39,18 @@ licenses:
script:
# - ./gradlew assembleKiwixDebug jacocoTestKiwixDebugUnitTestReport
- 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
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
- adb shell input keyevent 82 & # unlock screen by pressing menu button
- ./gradlew createKiwixDebugCoverageReport
- if [ "$TRAVIS_BRANCH" == "release" ];
then ./gradlew publishKiwixRelease; fi
- if [ "$TRAVIS_BRANCH" == "release" ];then
./gradlew publishKiwixRelease;
fi

after_success:
- bash <(curl -s https://codecov.io/bash)
- ./gradlew testdroidUploadKiwixDebug

after_failure:
- export MY_MOD="app"
- 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
- echo "====================="; cat ${HOME}/home/travis/build/kiwix/kiwix-android/app/build/reports/androidTests/connected/flavors/KIWIX/index.html;

0 comments on commit e478c5b

Please sign in to comment.