Created
January 18, 2012 23:08
-
-
Save ezra-g/1636407 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 | |
#We check this out via here so we won't get a changelog in jenkins :( | |
echo "Building commons branch: $COMMONSBRANCH" | |
rm -rf commons_checkout | |
git clone --branch ${COMMONSBRANCH} git://git.drupal.org/project/commons.git commons_checkout | |
echo "Check out drush and drush make" | |
rm -rf drush | |
git clone --branch 7.x-4.x git://git.drupal.org/project/drush.git drush | |
git clone --branch 6.x-2.x git://git.drupal.org/project/drush_make.git drush/commands/drush_make | |
if [ "${BUILDTYPE}" == "production" ] | |
then | |
echo "Patch Drush make so that it can locate the production make file" | |
cd drush/commands/drush_make | |
curl -LO https://raw.github.com/gist/1636381/42fb23867256f7c3b61cf709eb82525522b40b76/gistfile1.txt | |
git apply gistfile1.txt | |
fi | |
chmod +x drush/drush | |
echo "prepare our output directory" | |
rm -rf build_artifact | |
mkdir build_artifact | |
echo "Launch the build" | |
if [ "${BUILDTYPE}" == "production" ] | |
then | |
echo "Launching a production build task" | |
drush/drush make commons_checkout/commons-prod.make --tar build_artifact/commons-{COMMONSBRANCH} | |
else | |
echo "Launching a development build task" | |
drush/drush make commons_checkout/commons-dev.make --working-copy --tar build_artifact/commons_nightly_dev_${COMMONSBRANCH}_${BUILD_ID} | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment