language: java
env:
    global:
    - TERM=dumb
    matrix:
    - ANDROID_SDKS=android-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-18 ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-17 ANDROID_TARGET=android-17 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-16 ANDROID_TARGET=android-16 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-15 ANDROID_TARGET=android-15 ANDROID_ABI=armeabi-v7a

before_script:
    - cd pebble-locker-android
    - chmod +x gradlew
    - echo no | android create avd --force -n pebbleLockerTest -t $ANDROID_TARGET --abi $ANDROID_ABI
    - emulator -avd pebbleLockerTest -no-skin -no-audio -no-window &
    - ./gradlew assemble || true
    - adb wait-for-device
    - while [[ `adb shell pm path android` == 'Error'* ]]; do sleep 2; done
    - adb shell input keyevent 82 &
script: ./gradlew --info connectedAndroidTest

language: android
env:
    global:
    - TERM=dumb
    matrix:
    - ANDROID_SDKS=android-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-18 ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-17 ANDROID_TARGET=android-17 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-16 ANDROID_TARGET=android-16 ANDROID_ABI=armeabi-v7a
    - ANDROID_SDKS=android-15 ANDROID_TARGET=android-15 ANDROID_ABI=armeabi-v7a

before_script:
    - cd pebble-locker-android
    - chmod +x gradlew
    - echo no | android create avd --force -n pebbleLockerTest -t $ANDROID_TARGET --abi $ANDROID_ABI
    - emulator -avd pebbleLockerTest -no-skin -no-audio -no-window &
    - ./gradlew assemble || true
    - adb wait-for-device
    - while [[ `adb shell pm path android` == 'Error'* ]]; do sleep 2; done
    - adb shell input keyevent 82 &
script: ./gradlew --info connectedAndroidTest

Revert "Attempt to avoid sdk conflict"
Revert "Attempt to avoid sdk conflict"

This reverts commit 05370c9b191bb68bc2c97254f57ba7ca586634b0.
