Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Check Ruby syntax and run the test suites
- files=`git diff --cached --name-only`
- for file in $files; do
- if [[ ${file##*.} = 'rb' ]]; then
- ruby -c $file
- elif head -1 $file | grep 'ruby$'; then
- ruby -c $file
- fi
- done
- rake ci
Add Comment
Please, Sign In to add comment