Travis: support pull request based tests

Closes #288.