add travis ci and complete mocha migration