Guest User

Untitled

a guest
Nov 18th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2. # .git/hooks/pre-push
  3.  
  4. printf "Checking PSR2 before pushing\n"
  5.  
  6. vendor/bin/phpcs --standard=PSR2 src/AppBundle/ tests/
  7.  
  8. OUT=$?
  9. if [ $OUT -eq 0 ];then
  10. printf "OK! Pushing...\n"
  11. else
  12. printf "Errors found! Not pushing...\n"
  13. fi
Add Comment
Please, Sign In to add comment