Created
July 9, 2010 18:48
-
-
Save rklancer/469855 to your computer and use it in GitHub Desktop.
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
#/bin/bash | |
# get the commit # | |
export COMMIT_HASH=`git log -1 --format=%H` | |
# set up RVM and use our gemset | |
if [[ -s /home/maven/.rvm/scripts/rvm ]] ; then source /home/maven/.rvm/scripts/rvm ; fi | |
rvm 1.9.1@raphael_views | |
# setup raphael-git. Include the --recursive in case we end up adding submodules that have their own submodules | |
# (a la Smartgraphs including RaphaelViews which in turn includes RaphaelJS) | |
git submodule update --init --recursive | |
# make sure we're using the latest abbot | |
if [ ! -d abbot ] ; then | |
git clone git://github.com/sproutit/sproutcore-abbot.git abbot ; | |
fi | |
# make sure we're using the correct sproutcore framework ... Since we're distributing a framework to be used | |
# with a users' own Sproutcore install, we (probably) don't want to include sproutcore as a git submodule | |
if ! git submodule | grep 'frameworks/sproutcore' ; then | |
if [ ! -d frameworks/sproutcore ] ; then | |
git clone git://github.com/sproutit/sproutcore frameworks/sproutcore ; | |
fi | |
cd frameworks/sproutcore ; | |
git checkout `cat ../../sproutcore.commit` ; | |
cd ../.. ; | |
fi | |
cat >>Buildfile <<END | |
# (leave this line blank in case Buildfile lacks trailing whitespace/newline) | |
config :all, | |
url_prefix => '/raphael_views/test/$COMMIT_HASH/' | |
END | |
# add inject.js to the debug folder of sproutcore, so it's included in all tests built in debug mode | |
# git clone git://gist.github.com/469819.git frameworks/sproutcore/debug | |
mkdir frameworks/sproutcore/debug | |
curl http://github.com/concord-consortium/testswarm/raw/cc/js/inject.js -o frameworks/sproutcore/debug/inject.js | |
# build the project in debug mode, to get tests | |
abbot/bin/sc-build --mode=debug --build_root=build_folder | |
# # copy tests over to release site | |
# cp -r build_folder /web/rklancer.dev.concord.org/ | |
# # point capybara-testrunner at tests? Will it need to ignore inject.js? | |
# ... | |
# | |
# # clean the Buildfile and configure it for release | |
# git checkout -f | |
# cat >>Buildfile <<END | |
# config :all, | |
# url_prefix => '/raphael_views/release/$COMMIT_HASH/' | |
# END | |
# | |
# abbot/bin/sc-build -r raphael_views --build_root = build_folder | |
# # build the docs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment