Skip to content

Commit

Permalink
allow ignoring of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 7, 2011
1 parent c652647 commit 1ea9771
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/deploy
Expand Up @@ -3,6 +3,7 @@
VERSION="0.1.0"
CONFIG=./deploy.conf
LOG=/tmp/deploy.log
TEST=1
REF=
ENV=

Expand Down Expand Up @@ -184,7 +185,11 @@ deploy() {

hook post-deploy || abort "post-deploy hook failed"

hook test || abort "test hook failed"
if test $TEST -eq 1; then
hook test || abort "test hook failed"
else
log 'ignoring tests'
fi

# done
log deploy complete
Expand Down

0 comments on commit 1ea9771

Please sign in to comment.