Skip to content

Instantly share code, notes, and snippets.

@chalmagean
Created July 19, 2019 11:00
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 chalmagean/99e1df28e96cbb0072dc269b21b20e37 to your computer and use it in GitHub Desktop.
Save chalmagean/99e1df28e96cbb0072dc269b21b20e37 to your computer and use it in GitHub Desktop.
#!/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