This commit is contained in:
John Bintz 2012-04-20 11:26:27 -04:00
parent e23aae423d
commit 95a450cce2
2 changed files with 25 additions and 16 deletions

View File

@ -0,0 +1,24 @@
#!/bin/bash
msg=$(cat $1)
OLD_GIT_DIR=$GIT_DIR
if [[ "${msg}" != *"[ci skip]"* ]]; then
if [ "$(penchant gemfile-env)" != "remote" ]; then
penchant gemfile remote
fi
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi
fi
if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
unset GIT_DIR
penchant gemfile remote --deployment
GIT_DIR=$OLD_GIT_DIR
git add Gemfile*
fi

View File

@ -1,19 +1,4 @@
#!/bin/bash #!/bin/bash
OLD_GIT_DIR=$GIT_DIR # this has been moved to commit-msg
if [ "$(penchant gemfile-env)" != "remote" ]; then
penchant gemfile remote
fi
bundle exec rake
R=$?
if [ $R -ne 0 ]; then exit $R; fi
if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
unset GIT_DIR
penchant gemfile remote --deployment
GIT_DIR=$OLD_GIT_DIR
git add Gemfile*
fi