Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (5 sloc) 377 Bytes
#!/bin/bash
SUPPORTED_COMMITED_FILES=$((git diff --name-only HEAD~ HEAD 2>/dev/null || git diff-tree -r --no-commit-id --name-only --root HEAD) | grep '^\(Gemfile\|Gemfile\.lock\|.*\.gemspec\|package\.json\|npm-shrinkwrap\.json\|setup\.py\|requirements\.txt\|requires\.txt\|composer\.json\|composer\.lock\)$')
if [[ $SUPPORTED_COMMITED_FILES > 0 ]]; then
gemnasium push
fi