language: android
jdk: oraclejdk7
env:
  matrix:
    - ANDROID_TARGET=android-16 ANDROID_ABI=armeabi-v7a

android:
  components:
    # use the latest revision of Android SDK Tools
    - platform-tools
    - tools

    # The BuildTools version used
    - build-tools-21.1.1

    # The SDK version used to compile the project
    # Android 21 (5.0) Emulator fails to launch many times, so go for Android 16
    - android-16

    # Specify at least one system image,
    # if you need to run emulator(s) during your tests
    - sys-img-armeabi-v7a-android-16

# Disable travis email notifications until builds work properly
notifications:
  email: false

before_script:
  # Create and start emulator if you want to run tests
  - echo no | android create avd --force -n test -t $ANDROID_TARGET -c 1024M --abi $ANDROID_ABI
  - emulator -avd test -no-skin -no-audio -no-window &
  - adb wait-for-device
  - adb shell input keyevent 82 &
  - chmod +x travis-build.sh
  - chmod +x android/source/gradlew

script: 
  - ./travis-build.sh
  - ./travis-acceptance-tests.sh

# Enable caching to speed up the build
cache:
  directories:
    - $HOME/.gradle
    - $HOME/.m2
    - apt

language: android
jdk: oraclejdk7
env:
  matrix:
    - ANDROID_TARGET=android-16 ANDROID_ABI=armeabi-v7a

android:
  components:
    # use the latest revision of Android SDK Tools
    - platform-tools
    - tools

    # The BuildTools version used
    - build-tools-21.1.1

    # The SDK version used to compile the project
    # Android 21 (5.0) Emulator fails to launch many times, so go for Android 16
    - android-16

    # Specify at least one system image,
    # if you need to run emulator(s) during your tests
    - sys-img-armeabi-v7a-android-16

# Disable travis email notifications until builds work properly
notifications:
  email: false

before_script:
  # Create and start emulator if you want to run tests
  - echo no | android create avd --force -n test -t $ANDROID_TARGET -c 1024M --abi $ANDROID_ABI
  - emulator -avd test -no-skin -no-audio -no-window &
  - adb wait-for-device
  - adb shell input keyevent 82 &
  - chmod +x android/source/gradlew
  - chmod +x travis-build.sh
  - chmod +x travis-acceptance-tests.sh

script: 
  - ./travis-build.sh
  - ./travis-acceptance-tests.sh

# Enable caching to speed up the build
cache:
  directories:
    - $HOME/.gradle
    - $HOME/.m2
    - apt

Add execute permission to shell script that runs acceptance tests
Add execute permission to shell script that runs acceptance tests
