[travis-ci] only build stable/master branches

 -- fix script to run custom gradle command