Skip to content

Instantly share code, notes, and snippets.

@chalmagean chalmagean/pre-push
Created Jul 19, 2019

Embed
What would you like to do?
#!/bin/sh
echo "Loading the test enviromnment..."
source .env.test
RAILS_ENV=test bundle exec rspec
if [[ $? != 0 ]]; then
echo "RSpec tests have failures. Push rejected."
exit 1
fi;
RAILS_ENV=test bundle exec cucumber --no-strict
if [[ $? != 0 ]]; then
echo "Feature tests have failures. Push rejected."
exit 1
fi;
source .env.development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.