Fix pull request check for deployment via Travis