move code from .travis.yml to separate file and update instructions for running tests locally