title: Test espresso with Travis
body: <p>I am trying to test integration tests with Travis-CI. I have the yml:</p>
  
  <pre><code>language: android
  
  jdk: oraclejdk8
  
  sudo: false
  
  android:
    components:
    - platform-tools
    - tools
    - build-tools-25.0.2
    - android-25
    - sys-img-armeabi-v7a-android-22
  
    #Extras
    - extra-android-m2repository
    - extra-google-m2repository
    - extra-android-m2repository
  
  before_script:    
    - android list targets
    - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
    - emulator -avd test -no-skin -no-audio -no-window &amp;
    - android-wait-for-emulator
    - adb shell input keyevent 82 &amp;
  
  script: 
    - ./gradlew test
    - ./gradlew connectedAndroidTest
  script: "./travis-build.sh"
  </code></pre>
  
  <p>This should work, but I am always getting:</p>
  
  <p>Error: Target id is not valid. Use 'android list targets' to get the target ids.</p>
  
  <p>I have no idea how to fix this problem...</p>
  
  <p>Any help is appreciated</p>