Run androidTests on api 22

pull/18/head
Mattia Iavarone 8 years ago
parent 07cf793f2b
commit bea56a37d3
  1. 14
      .travis.yml

@ -10,6 +10,12 @@ sudo: false
jdk: jdk:
- oraclejdk8 - oraclejdk8
env:
global:
# Run android tests on api level 22
- EMULATOR_API=22
- EMULATOR_ABI=armeabi-v7a
android: android:
components: components:
- tools - tools
@ -17,16 +23,18 @@ android:
- build-tools-26.0.1 - build-tools-26.0.1
- android-26 - android-26
- doc-26 - doc-26
- sys-img-armeabi-v7a-android-26 # Android tests
- android-$EMULATOR_API
- sys-img-$EMULATOR_ABI-android-$EMULATOR_API
before_script: before_script:
- echo no | android create avd --force --name test --target android-26 --abi armeabi-v7a - echo no | android create avd --force --name test --target android-$EMULATOR_API --abi $EMULATOR_ABI
- emulator -avd test -no-skin -no-audio -no-window & - emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator - android-wait-for-emulator
- adb shell input keyevent 82 & - adb shell input keyevent 82 &
script: script:
- ./gradlew clean connectedCheck testDebugUnitTest - ./gradlew build connectedCheck testDebugUnitTest
cache: cache:
directories: directories:

Loading…
Cancel
Save