Skip to content

Instantly share code, notes, and snippets.

Created April 18, 2013 07:44
Show Gist options
  • Save anonymous/5410936 to your computer and use it in GitHub Desktop.
Save anonymous/5410936 to your computer and use it in GitHub Desktop.
Запускает тесты, которые пишешь (тег @dev), потом запускает все, и если всё ОК, то коммитит
cuke() {
clear
cucumber --drb --tags @dev features/
if [ $? -eq 0 ]; then
echo ""
echo ""
echo "@dev test are fine. Running all the tests."
echo ""
cucumber --drb features/
if [ $? -eq 0 ]; then
echo ""
echo ""
echo "All test are fine. Slice!"
echo ""
git add -A
git commit -m "Slice";
fi;
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment