To find out why you see gradle assemble instead of gradle bundleRelease :
gradle assemble is called by default at the install: Travis step (see Travis docs for a description of the steps and this note ).
Since you do not have the install: section of your script to override the default value, Travis calls gradle assemble .
This can be prevented by adding the following lines in which Travis does nothing during the installation phase:
install: - true
I had a similar problem , with Travis gradle assemble when I wanted to execute gradlew assembleDebug .
So, for me, the full script works (as of May 1, 2014 with Android as a first class citizen ):
language: android jdk: oraclejdk7 android: components: - build-tools-19.0.1 install: - true script: TERM=dumb ./gradlew assembleDebug
Thanks to Austyn Mahoney for clarifying this for me here .
EDIT
As of May 8, 2014, Travis CI has removed the default install: stage for Android beta, as discussed here . So now you can remove the install: step from your script, and Travis should not execute gradle assemble .
source share