Created
December 6, 2020 01:32
-
-
Save jordanhudgens/6916ce139089ce231d550a54378ec9e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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