Created
April 18, 2013 07:44
-
-
Save anonymous/5410936 to your computer and use it in GitHub Desktop.
Запускает тесты, которые пишешь (тег @dev), потом запускает все, и если всё ОК, то коммитит
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
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