From bea56a37d383e599dc2e48a68dfb07561bd2f60e Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Sun, 3 Sep 2017 20:08:37 +0200 Subject: [PATCH] Run androidTests on api 22 --- .travis.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ab3ec052..df2c1136 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,12 @@ sudo: false jdk: - oraclejdk8 +env: + global: + # Run android tests on api level 22 + - EMULATOR_API=22 + - EMULATOR_ABI=armeabi-v7a + android: components: - tools @@ -17,16 +23,18 @@ android: - build-tools-26.0.1 - android-26 - doc-26 - - sys-img-armeabi-v7a-android-26 + # Android tests + - android-$EMULATOR_API + - sys-img-$EMULATOR_ABI-android-$EMULATOR_API 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 & - android-wait-for-emulator - adb shell input keyevent 82 & script: - - ./gradlew clean connectedCheck testDebugUnitTest + - ./gradlew build connectedCheck testDebugUnitTest cache: directories: