Just follow repo android-travis-ci-example.