[travis] Enhance build script