modify build.gradle for Travis CI

Modify build.gradle to skip signing if relevant environmental
variables not set

Signed-off-by: Jason Rogena <jasonrogena@gmail.com>