2006-12-05 22:58:38 +03:00
|
|
|
test:
|
2007-03-23 02:01:14 +03:00
|
|
|
for f in release t/test.pl `find . -name "*.pm"`; do perl -c $$f; done
|
2007-02-01 06:50:47 +03:00
|
|
|
if [ -f t/test.log ]; then rm t/test.log; fi
|
2007-03-26 03:54:25 +04:00
|
|
|
if [ ! -f bootstrap.cfg ]; then cp bootstrap.cfg.example bootstrap.cfg; fi
|
2006-12-05 22:58:38 +03:00
|
|
|
./t/test.pl
|
|
|
|
|
|
|
|
stage:
|
|
|
|
# basic environment
|
2007-04-25 02:04:12 +04:00
|
|
|
mkdir -p /builds/config
|
2006-12-05 22:58:38 +03:00
|
|
|
mkdir -p /builds/tags
|
|
|
|
mkdir -p /builds/updates/
|
|
|
|
mkdir -p /builds/verify/
|
2007-08-15 22:46:22 +04:00
|
|
|
# ftp
|
2007-03-23 02:01:14 +03:00
|
|
|
mkdir -p /home/ftp/pub/firefox/nightly
|
|
|
|
# fake key
|
|
|
|
mkdir -p /home/ftp/pub/firefox/releases/1.5/
|
|
|
|
touch /home/ftp/pub/firefox/releases/1.5/KEY
|
2006-12-05 22:58:38 +03:00
|
|
|
# staging environment
|
2007-04-25 02:04:12 +04:00
|
|
|
mkdir -p /data/cltbld/firefox-2.0.0.4/batch1/stage
|
2006-12-05 22:58:38 +03:00
|
|
|
|
2007-02-01 06:50:47 +03:00
|
|
|
cvsmirror: cvsmirror_mofo cvsmirror_main
|
2006-12-05 22:58:38 +03:00
|
|
|
|
|
|
|
cvsmirror_main:
|
2007-03-23 02:01:14 +03:00
|
|
|
rsync -a --delete-after --exclude=CVSROOT/config --exclude=CVSROOT/loginfo cvs-mirror.mozilla.org::mozilla/ /builds/cvsmirror/cvsroot/
|
|
|
|
rsync -a --delete-after cvs-mirror.mozilla.org::l10n/ /builds/cvsmirror/l10n/
|
|
|
|
chgrp -R cvs /builds/cvsmirror/cvsroot /builds/cvsmirror/l10n
|
|
|
|
chmod -R g+rw /builds/cvsmirror/cvsroot /builds/cvsmirror/l10n
|
2007-04-25 02:04:12 +04:00
|
|
|
cvs -d /builds/cvsmirror/cvsroot rtag -d FIREFOX_2_0_0_4_RELEASE mozilla
|
|
|
|
cvs -d /builds/cvsmirror/cvsroot rtag -d FIREFOX_2_0_0_4_RC1 mozilla
|
|
|
|
cvs -d /builds/cvsmirror/cvsroot rtag -d -B FIREFOX_2_0_0_4_MINIBRANCH mozilla
|
|
|
|
cvs -d /builds/cvsmirror/l10n rtag -d FIREFOX_2_0_0_4_RELEASE l10n
|
|
|
|
cvs -d /builds/cvsmirror/l10n rtag -d FIREFOX_2_0_0_4_RC1 l10n
|
2006-12-05 22:58:38 +03:00
|
|
|
|
|
|
|
cvsmirror_mofo:
|
2007-03-23 02:01:14 +03:00
|
|
|
mkdir -p /builds/cvsmirror/tmp/mofo
|
|
|
|
mkdir -p /builds/cvsmirror/mofo
|
|
|
|
cvs -d /builds/cvsmirror/mofo init
|
|
|
|
cd /builds/cvsmirror/tmp/mofo && cvs -d cltbld@cvs.mozilla.org:/mofo export -r MOZILLA_1_8_0_BRANCH talkback
|
|
|
|
cd /builds/cvsmirror/tmp/mofo && cvs -d cltbld@cvs.mozilla.org:/mofo export -r HEAD release
|
|
|
|
rm -rf /builds/cvsmirror/tmp/mofo/release/tinderbox-configs/
|
|
|
|
cd /builds/cvsmirror/tmp/mofo && cvs -d cltbld@cvs.mozilla.org:/mofo export -r MOZILLA_1_8_0_BRANCH_release release/tinderbox-configs/
|
|
|
|
cd /builds/cvsmirror/tmp/mofo/release && cvs -d /builds/cvsmirror/mofo import -d -m "import CVS snapshot" release MOZILLA_1_8_0_BRANCH_release R0_1
|
|
|
|
cd /builds/cvsmirror/tmp/mofo/talkback && cvs -d /builds/cvsmirror/mofo import -d -m "import CVS snapshot" talkback MOZILLA_1_8_0_BRANCH R0_1
|
|
|
|
rm -rf /builds/cvsmirror/tmp/mofo
|
|
|
|
chgrp -R cvs /builds/cvsmirror/mofo
|
|
|
|
chmod g+rwx /builds/cvsmirror/mofo
|
|
|
|
chmod -R g+rw /builds/cvsmirror/mofo
|
|
|
|
|
|
|
|
clean_stage:
|
2007-04-25 02:04:12 +04:00
|
|
|
rm -rf /builds/config/*
|
2006-12-05 22:58:38 +03:00
|
|
|
rm -rf /builds/tags/*
|
|
|
|
rm -rf /builds/release/logs/*
|
|
|
|
rm -rf /builds/updates/*
|
|
|
|
rm -rf /builds/verify/*
|
2007-03-23 02:01:14 +03:00
|
|
|
rm -rf /data/cltbld/firefox-*/
|
|
|
|
rm -rf /home/ftp/pub/firefox/*
|
2006-12-05 22:58:38 +03:00
|
|
|
|
2007-03-22 01:44:17 +03:00
|
|
|
clean_cvsmirror: clean_cvsmirror_main clean_cvsmirror_mofo
|
2007-03-23 02:01:14 +03:00
|
|
|
rm -rf /builds/cvsmirror/*
|
2007-03-22 01:44:17 +03:00
|
|
|
|
|
|
|
clean_cvsmirror_main:
|
2007-03-23 02:01:14 +03:00
|
|
|
rm -rf /builds/cvsmirror/cvsroot/*
|
|
|
|
rm -rf /builds/cvsmirror/l10n/*
|
2007-03-22 01:44:17 +03:00
|
|
|
|
|
|
|
clean_cvsmirror_mofo:
|
2007-03-23 02:01:14 +03:00
|
|
|
rm -rf /builds/cvsmirror/mofo/*
|