File: pre-push.sample

package info (click to toggle)
ruby-faker 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,596 kB
  • sloc: ruby: 20,656; sh: 6; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Add this file to your .git/hooks folder without .sample extension
#
# Called by "git push" before anything has been pushed.
# If this script exits with a non-zero status nothing will be pushed.

echo "Running pre-push hook"
bundle exec rake

# $? stores exit value of the last command
if [ $? -ne 0 ]; then
 echo "Rubocop and Tests must pass before pushing!"
 exit 1
fi