Travis fix.

Updated .travis.yml, gradle and the build.gradle. Now travis should be able to run tests successfully.