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 117
Build Process
Myk Melez edited this page May 30, 2013
·
21 revisions
On development machine:
export CURRENT=4.0pre4 NEXT=4.0pre5
git checkout -b build-${CURRENT} master
# update version in addon/package.json
git commit -m"update version for ${CURRENT} build" addon/package.json
git push --set-upstream origin build-${CURRENT}
On each build machine:
export CURRENT=4.0pre4
# If reusing an existing clone:
git fetch
git checkout build-${CURRENT}
# If cloning anew:
git clone git://github.com/mykmelez/r2d2b2g.git
cd r2d2b2g
git checkout build-${CURRENT}
git submodule init
# The rest is the same for both new and existing clones:
git submodule update
LOCALES_FILE=${PWD}/build/languages.json make locales
LOCALES_FILE=${PWD}/build/languages.json make
# On Linux 32, also do:
B2G_PLATFORM=linux64 LOCALES_FILE=${PWD}/build/languages.json make
make package
mv addon/r2d2b2g.xpi addon/r2d2b2g-${CURRENT}-mac.xpi
scp addon/r2d2b2g-${CURRENT}-mac.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
mv addon/r2d2b2g.xpi addon/r2d2b2g-${CURRENT}-windows.xpi
scp addon/r2d2b2g-${CURRENT}-windows.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
mv addon/r2d2b2g.xpi addon/r2d2b2g-${CURRENT}-linux.xpi
scp addon/r2d2b2g-${CURRENT}-linux.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
Test the builds.
On stage server:
export CURRENT=4.0pre4
cd /pub/mozilla.org/labs/r2d2b2g/
rm r2d2b2g-windows.xpi && ln -s r2d2b2g-${CURRENT}-windows.xpi r2d2b2g-windows.xpi ; rm r2d2b2g-mac.xpi && ln -s r2d2b2g-${CURRENT}-mac.xpi r2d2b2g-mac.xpi ; rm r2d2b2g-linux.xpi && ln -s r2d2b2g-${CURRENT}-linux.xpi r2d2b2g-linux.xpi
On development machine:
git tag ${CURRENT}
# update version in addon/package.json
git commit -m"update version for ${NEXT}dev development" addon/package.json
git push
git checkout master
git merge build-${CURRENT}
git push --tags origin master
git push --tags upstream master
git branch -d build-${CURRENT}
git push origin :build-${CURRENT}
On each build machine:
# If you reused an existing clone:
git checkout master
git pull
git branch -d build-${CURRENT}
git remote prune origin
make clean
make -C gaia multilocale-clean
git status
# If you cloned anew:
cd ..
rm -rf r2d2b2g