Skip to content

Instantly share code, notes, and snippets.

@mpapis
Forked from anonymous/gist:1798957
Created February 11, 2012 11:53
Show Gist options
  • Save mpapis/1798958 to your computer and use it in GitHub Desktop.
Save mpapis/1798958 to your computer and use it in GitHub Desktop.
travis-lint in git hook
#!/usr/bin/env bash
travis-lint
printf '#!/usr/bin/env bash\n\ntravis-lint\n' > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment