Support for switching branch on Travis

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>