Refractoring travis Yaml file