language: android
dist: trusty
script:
  - sudo mkdir -p /usr/local/android-sdk/licenses/
  - sudo touch /usr/local/android-sdk/licenses/android-sdk-license
  - echo "8933bad161af4178b1185d1a37fbf41ea5269c55" | sudo tee -a /usr/local/android-sdk/licenses/android-sdk-license
  - echo "d56f5187479451eabf01fb78af6dfcb131a6481e" | sudo tee -a /usr/local/android-sdk/licenses/android-sdk-license
  - echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" | sudo tee -a /usr/local/android-sdk/licenses/android-sdk-license
  # Run tests
  - ./gradlew -q testDebug 2>&1
  # Make sure a release build builds
  - ./gradlew assembleForkRelease -PversionName="$(git describe --tags HEAD)"
  
