Skip to content

Commit

Permalink
#1175 move no accel flag to correct command
Browse files Browse the repository at this point in the history
  • Loading branch information
BBT-SeanMacGillicuddy committed May 24, 2019
1 parent 595cc42 commit 9c55e44
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ install:
- pip install --user 'requests[security]'
- wget -r -nH -nd -np -R index.html* robots.txt* http://download.kiwix.org/dev/android/api/licenses/ -e robots=off -P $ANDROID_HOME/licenses || true

addons:
apt:
packages:
- lynx

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
Expand All @@ -38,8 +43,8 @@ licenses:

script:
# - ./gradlew lintKiwixDebug jacocoTestKiwixDebugUnitTestReport
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 100M -no-accel
- emulator -avd test -no-window &
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 100M
- emulator -avd test -no-window -no-accel &
- 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
Expand All @@ -54,8 +59,8 @@ after_success:
- ./gradlew testdroidUploadKiwixDebug

after_failure:
- export LOG_DIR=home/travis/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX
- cat ${LOG_DIR}com.android.builder.testing.ConnectedDevice.html
- cat ${LOG_DIR}com.android.builder.testing.html
- cat ${LOG_DIR}org.kiwix.kiwixmobile.tests.BasicTest.html;
- export LOG_DIR=home/travis/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.html
- lynx -dump ${LOG_DIR}org.kiwix.kiwixmobile.tests.BasicTest.html;
- echo " LOGCAT "; echo "========"; cat logcat.log; pkill -KILL -f adb

0 comments on commit 9c55e44

Please sign in to comment.