.travis.yml
#language: java
language: android
jdk: oraclejdk7
env:
matrix:
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a # unsure about ABI
android:
components:
- build-tools-21.1.2
before_script:
# submodules
- git submodule init
- git submodule update
# Create and start emulator
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device
- adb shell input keyevent 82 &
# to avoid uploading the cache after every build:
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
gradle desktop:test --rerun-tasks
after_success:
# TODO: increment version & push to github
# - git commit -a -m "Committed by Travis-CI build number: $((TRAVIS_JOB_ID - 1))"
# TODO: build & publish javadocs to gh-pages:
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
notifications:
email:
on_success: change # default: change
on_failure: change # default: always
webhooks:
urls:
- https://webhooks.gitter.im/e/b94b4a577f0cef5157fa
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always