Guest User

Untitled

a guest
Jul 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/sh
  2. # Check Ruby syntax and run the test suites
  3. files=`git diff --cached --name-only`
  4.  
  5. for file in $files; do
  6. if [[ ${file##*.} = 'rb' ]]; then
  7. ruby -c $file
  8. elif head -1 $file | grep 'ruby$'; then
  9. ruby -c $file
  10. fi
  11. done
  12.  
  13. rake ci
Add Comment
Please, Sign In to add comment