Add support for travis-ci

Copied from:

https://github.com/sgillespie/protect-paths-stash-hook