Adapted .travis.yml from astropy.