This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
Build Process, release 5.0 Branch
Myk Melez edited this page Nov 5, 2013
·
3 revisions
Edit this file, replacing references to NEW_DEV_VERSION, OLD_DEV_VERSION, and BUILD_VERSION (in that order) with the appropriate versions for the build in question.
On development machine:
export OLD_DEV_VERSION=5.0pre7dev BUILD_VERSION=5.0pre7 NEW_DEV_VERSION=5.0pre8dev
git checkout -b build-${BUILD_VERSION} release-5.0
sed -i '' s/${OLD_DEV_VERSION}/${BUILD_VERSION}/g addon/package.json
git commit -m"update version for ${BUILD_VERSION} build" addon/package.json
git push --set-upstream origin build-${BUILD_VERSION}
On each build machine:
export BUILD_VERSION=5.0pre7
#git clone git://github.com/mykmelez/r2d2b2g.git && cd r2d2b2g # if cloning anew
git fetch
git checkout build-${BUILD_VERSION}
git submodule update --init
LOCALES_FILE=${PWD}/build/languages.json make locales
LOCALES_FILE=${PWD}/build/languages.json make
make package
On Linux 32, build for Linux 64 too:
B2G_PLATFORM=linux64 LOCALES_FILE=${PWD}/build/languages.json make
make package
Push the builds to the server:
mv addon/r2d2b2g.xpi addon/r2d2b2g-${BUILD_VERSION}-mac.xpi
scp addon/r2d2b2g-${BUILD_VERSION}-mac.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
mv addon/r2d2b2g.xpi addon/r2d2b2g-${BUILD_VERSION}-windows.xpi
scp addon/r2d2b2g-${BUILD_VERSION}-windows.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
mv addon/r2d2b2g.xpi addon/r2d2b2g-${BUILD_VERSION}-linux.xpi
scp addon/r2d2b2g-${BUILD_VERSION}-linux.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
Test the builds.
On stage server:
export BUILD_VERSION=5.0pre7
cd /pub/mozilla.org/labs/r2d2b2g/
rm r2d2b2g-windows.xpi && ln -s r2d2b2g-${BUILD_VERSION}-windows.xpi r2d2b2g-windows.xpi
rm r2d2b2g-mac.xpi && ln -s r2d2b2g-${BUILD_VERSION}-mac.xpi r2d2b2g-mac.xpi
rm r2d2b2g-linux.xpi && ln -s r2d2b2g-${BUILD_VERSION}-linux.xpi r2d2b2g-linux.xpi
On development machine:
git tag ${BUILD_VERSION}
sed -i '' s/${BUILD_VERSION}/${NEW_DEV_VERSION}/g addon/package.json
git commit -m"update version for ${NEW_DEV_VERSION} development" addon/package.json
git push
git checkout release-5.0
git merge build-${BUILD_VERSION}
git push --tags origin release-5.0
git push --tags upstream release-5.0
git branch -d build-${BUILD_VERSION}
git push origin :build-${BUILD_VERSION}
On each build machine:
git checkout release-5.0
git pull
git branch -d build-${BUILD_VERSION}
git remote prune origin
make clean
make -C gaia multilocale-clean
git status
#cd .. && rm -rf r2d2b2g # if cloned anew and you want to delete clone