Created
January 20, 2012 19:06
-
-
Save turtlebender/1649030 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
export GLOBUS_LOCATION=/usr | |
export GLOBUS_FLAVOR= | |
cd ~/graph | |
if ! git rev-parse --git-dir > /dev/null; then | |
echo "This is not a git directory" | |
exit 1 | |
fi | |
git fetch >/dev/null 2>&1 | |
git branch |grep deploy | |
git checkout deploy > /dev/null 2>&1 || git checkout -b deploy | |
local_ref=`git rev-parse HEAD` | |
remote_ref=`git ls-remote origin integration 2>&1 |cut -f 1` | |
if [ ${local_ref} != ${remote_ref} ] | |
then | |
git reset --hard origin/integration | |
fi | |
test -f ~/deploy/bin/activate || virtualenv ~/deploy | |
source ~/deploy/bin/activate | |
echo $PATH | |
pip install -r pip-requires.txt | |
python setup.py install | |
deactivate | |
virtualenv --relocatable ~/deploy | |
rm /vagrant/globusonline.sqsh | |
mksquashfs ~/deploy /vagrant/globusonline.sqsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment