chore(scripts): refactor travis scripts