language: android
android:
   components:
   - tools
   - tools #Running this twice get's the latest build tools (https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI)
   - platform-tools
   - android-28
   - android-22
   - build-tools-28.0.3
   - extra
   licenses:
   - 'android-sdk-license-.+'

jdk: oraclejdk8

notifications:
  email: false

sudo: required #The build runs out of memory and is killed if we use the container system

before_install:
  - yes | sdkmanager "platforms;android-28" "system-images;android-22;google_apis;armeabi-v7a"

before_script:
  - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a -c 100M
  - emulator -avd test -no-audio -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &

script:
  - ./gradlew clean build
  - ./gradlew test
  - ./gradlew connectedCheck

language: android
android:
   components:
   - tools
   - tools #Running this twice get's the latest build tools (https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI)
   - platform-tools
   - android-28
   - build-tools-28.0.3
   - extra
   - sys-img-armeabi-v7a-google_apis-22
   licenses:
   - 'android-sdk-license-.+'

jdk: oraclejdk8

notifications:
  email: false

sudo: required #The build runs out of memory and is killed if we use the container system

before_install:
  - yes | sdkmanager "platforms;android-28"

before_script:
  - echo no | android create avd --force -n test -t android-22 --abi google_apis/armeabi-v7a -c 100M
  - emulator -avd test -no-audio -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &

script:
  - ./gradlew clean build
  - ./gradlew test
  - ./gradlew connectedCheck

Test other way of adding system image
Test other way of adding system image
