unified travis script to handle different branches