Skip to content

Instantly share code, notes, and snippets.

@jordanhudgens
Created December 6, 2020 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanhudgens/6916ce139089ce231d550a54378ec9e4 to your computer and use it in GitHub Desktop.
Save jordanhudgens/6916ce139089ce231d550a54378ec9e4 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Running RSpec"
bundle exec rspec spec
spec=$?
if [ "$spec" = 0 ]
then
echo >&2 "Tests are green, pushing..."
exit 0
else
echo >&2 "Cannot push, tests are failing. Use --no-verify to force push."
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment