language: android
env:
  global:
    - ADB_INSTALL_TIMEOUT=8
android:
  components:
    - platform-tools
    - build-tools-23.0.1
    - android-23
    - extra-android-support
    - extra-android-m2repository
    - sys-img-armeabi-v7a-android-21
before_script:
  - chmod +x gradlew
  - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
  - emulator -avd test -no-skin -no-audio -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &
script:
  - ./gradlew :domain:test --continue
  - ./gradlew :sample:connectedAndroidTest --stacktrace
  - ./gradlew build
language: android
env:
  global:
    - ADB_INSTALL_TIMEOUT=8
android:
  components:
    - platform-tools
    - build-tools-23.0.1
    - android-23
    - extra-android-support
    - extra-android-m2repository
    - sys-img-armeabi-v7a-android-21
before_script:
  - chmod +x gradlew
  - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
  - emulator -avd test -no-skin -no-audio -no-window &
script:
  - ./gradlew clean
  - ./gradlew :domain:test --continue
  - ./gradlew build
  - android-wait-for-emulator
  - adb shell input keyevent 82 &
  - ./gradlew :sample:connectedAndroidTest --stacktrace

Rearrange Travis script to test espresso lastly
Rearrange Travis script to test espresso lastly
