Skip to content

Commit

Permalink
update build script to build 3.0 from master
Browse files Browse the repository at this point in the history
  • Loading branch information
fmpwizard committed Jan 18, 2015
1 parent 3182510 commit efc7a15
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions unsafePublishLift.sh
Expand Up @@ -120,8 +120,8 @@ for MODULE in framework ; do
CURRENT_BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
debug "Current branch for $MODULE is $CURRENT_BRANCH"

if [ "${CURRENT_BRANCH}" != "lift_26" ]; then
echo "Currently releases can only be built from lift_26. $MODULE is on branch $CURRENT_BRANCH. Aborting build."
if [ "${CURRENT_BRANCH}" != "master" ]; then
echo "Currently releases can only be built from master. $MODULE is on branch $CURRENT_BRANCH. Aborting build."
exit
fi

Expand Down Expand Up @@ -155,18 +155,7 @@ for MODULE in framework ; do
#git push origin ${RELEASE_VERSION}-release >> ${BUILDLOG} || die "Could not push release tag!"

# Do a separate build for each configured Scala version so we don't blow the heap
# We have one project for scala versions pre 2.11.x
for SCALA_VERSION in 2.9.1 2.9.1-1 2.9.2 2.10.4 ; do
echo -n " Building against Scala ${SCALA_VERSION}..."
if ! ./liftsh ++${SCALA_VERSION} "project lift-framework-pre-211" clean update test publishSigned >> ${BUILDLOG} ; then
echo "failed! See build log for details"
exit
fi
echo "complete"
done

#and we have another for >= 2.11.x
for SCALA_VERSION in 2.11.1; do
for SCALA_VERSION in $(grep crossScalaVersions build.sbt | cut -d '(' -f 2 | sed s/[,\)\"]//g ); do
echo -n " Building against Scala ${SCALA_VERSION}..."
if ! ./liftsh ++${SCALA_VERSION} clean update test publishSigned >> ${BUILDLOG} ; then
echo "failed! See build log for details"
Expand All @@ -175,14 +164,11 @@ for MODULE in framework ; do
echo "complete"
done


echo "Build complete for module ${MODULE}"

done

echo -e "\n\nRelease complete!"
echo -e "\n\nPlease update the lift_sbt_2.6 templates!"
echo -e "\n\nand write something about this release on the liftweb.net site."



echo -e "\n\nPlease update the lift_30_sbt templates!"
echo -e "\n\nwrite something about this release on the liftweb.net site."
echo -e "\n\nand if all went well, push tags to github"

0 comments on commit efc7a15

Please sign in to comment.