add travis config and format test