From e5477af3f05561a411c363d19da145690cec3e9f Mon Sep 17 00:00:00 2001 From: Lennart Goedhart <lennart@omnibase.com.au> Date: Sun, 23 Jul 2017 21:40:34 +0800 Subject: [PATCH] Changes to get Travis build working. --- .travis.yml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index fdc9743..13e4ea9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,22 +15,35 @@ cache: env: global: - - MIN_SDK_VERSION=14 - - COMPILE_SDK_VERSION=25 - - ANDROID_BUILD_TOOLS=25.0.2 + - EMULATOR_API_LEVEL=14 + - ANDROID_API_LEVEL=25 + - ANDROID_BUILD_TOOLS_VERSION=25.0.2 + - ANDROID_ABI=armeabi-v7a - ADB_INSTALL_TIMEOUT=5 # minutes android: components: + # to install Android SDK tools 25.1.x - tools - platform-tools - tools - - build-tools-$ANDROID_BUILD_TOOLS - - android-$MIN_SDK_VERSION - - android-$COMPILE_SDK_VERSION - - extra-android-m2repository # for design library - - sys-img-armeabi-v7a-addon-google_apis-google-$MIN_SDK_VERSION - - sys-img-armeabi-v7a-addon-google_apis-google-$COMPILE_SDK_VERSION + + # Build tools + - build-tools-ANDROID_BUILD_TOOLS_VERSION + + # SDK Versions + - android-EMULATOR_API_LEVEL + - android-ANDROID_API_LEVEL + + # Support library + - extra-android-support + + # Latest artifacts in local repository + - extra-android-m2repository + + # Emulator images + - sys-img-$ANDROID_ABI-$ANDROID_API_LEVEL + - sys-img-$ANDROID_ABI-$EMULATOR_API_LEVEL licenses: - android-sdk-preview-license-.+ @@ -39,7 +52,7 @@ android: before_script: # Create and start emulator - - echo no | android create avd --force -n test -t android-25 --abi armeabi-v7a + - echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI - emulator -avd test -no-skin -no-audio -no-window & - android-wait-for-emulator - adb shell input keyevent 82 & -- GitLab