Skip to content

Commit

Permalink
Add script for red-green-testing of Django project with tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiroff committed Feb 5, 2013
1 parent 646fd1c commit eba65a3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/django-red-green
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
if [ ! -z $1 ] && [ $1 == end ]; then
tmux set -g status-bg cyan
exit 0
fi

clear
tmux set -g status-bg yellow
python manage.py test $1

if [ $? == 0 ]; then
tmux set -g status-bg green
else
tmux set -g status-bg red
fi

0 comments on commit eba65a3

Please sign in to comment.