Skip to content

Instantly share code, notes, and snippets.

@acid
Forked from matteosister/pre-commit
Last active April 7, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acid/24d1b04d74eb103112869f91719e8078 to your computer and use it in GitHub Desktop.
Save acid/24d1b04d74eb103112869f91719e8078 to your computer and use it in GitHub Desktop.
pre-push hook for our phoenix app
#!/bin/sh
# exit on any error (the called tool output should be enough)
set -e
# credo checks
mix credo --strict
# tests
mix test
# javascript lint
npm run lint
# javascript test
npm run test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment