adding nightly build to the source

This commit is contained in:
Benjamin Sonntag 2011-03-27 10:47:57 +00:00
parent d4721844ab
commit 3b7affb30a
6 changed files with 147 additions and 0 deletions

5
.gitattributes vendored
View File

@ -442,6 +442,11 @@ man/top_http_users.8 -text
man/top_http_users.fr.8 -text
man/top_mysql_users.8 -text
man/top_mysql_users.fr.8 -text
nightlybuild/HEADER.html -text
nightlybuild/README.html -text
nightlybuild/READMEFIRST -text
nightlybuild/build.sh -text
nightlybuild/nightly.key -text
po/alternc-admintools.pot -text
po/fr/LC_MESSAGES/.svnignore -text
po/fr/LC_MESSAGES/alternc-admintools.po -text

24
nightlybuild/HEADER.html Normal file
View File

@ -0,0 +1,24 @@
<h1>AlternC Nightly build repositories</h1>
Ce dossier contient les contructions quotidiennes automatique d'AlternC
<br />
La dernière version a un lien symbolique depuis latest/
<br />
pour utiliser ce dépôt, créer un fichier /etc/apt/sources.list.d/alternc-nightly.list comme suit
<br /><br />
This folder contains the automatic nightly build of AlternC
<br />
The latest version is linked inside latest/ symlink
<br />
To use this repository, create a file named /etc/apt/sources.list.d/alternc-nightly.list as follow :
<br />
<pre>
deb http://nightly.alternc.org/ latest/
</pre>
<br />
Le dépôt et les packages sont signés avec la clé pgp des nightly d'AlternC :
<br /><br />
The repository and the packages are signed by the pgp key of AlternC nightly build user :
<pre>
wget http://nightly.alternc.org/nightly.key | apt-key add -
</pre>

0
nightlybuild/README.html Normal file
View File

10
nightlybuild/READMEFIRST Normal file
View File

@ -0,0 +1,10 @@
To use the build system :
- create a user (nightly)
- create 2 folders in his home : buildroot and www
- point a virtualhost into www in your webserver
- copy build.sh to the home and the other files to www
- launch build.sh when you want to build the packages
You may need to change the pgp-key-id into build.sh (2 times) and into nightly.key

78
nightlybuild/build.sh Executable file
View File

@ -0,0 +1,78 @@
#!/bin/sh
VERSION="1.0"
# We launch this script inside the home directory of the "nigthly build user"
cd ~
# Shall we build or not ?
links -dump "http://alternc.org/svn/" | head -1 >new
if [ "`cat new`" == "`cat old`" ]
then
echo "No need to build : no change in the source since last launch"
exit 0
fi
mv -f new old
DATE="`date +%Y%m%d%H%M`"
mkdir ~/www/$DATE
echo "BuildRoot cleanup"
cd ~/buildroot/ && rm -rf *
echo "Building AlternC"
svn export -q http://alternc.org/svn/alternc/trunk/ alternc
cd alternc
mv debian/changelog debian/changelog.orig
cat >debian/changelog <<EOF
alternc (${VERSION}~nightly${DATE}) stable; urgency=low
* Automatic Nightly build of AlternC
* `cat ~/old`
-- Nightly Build <nightly@alternc.org> `date -R`
EOF
cat debian/changelog.orig >>debian/changelog
debuild -k0x1994905A >/dev/null
cd ..
rm -rf alternc
mv *.deb *.dsc *.build *.changes *.tar.gz ~/www/$DATE
for module in awstats mailman changepass procmail
do
echo "Building AlternC-${module}"
svn export -q http://alternc.org/svn/alternc-${module}/trunk/ alternc-${module}
cd alternc-${module}
mv debian/changelog debian/changelog.orig
cat >debian/changelog <<EOF
alternc-${module} (${VERSION}~nightly${DATE}) stable; urgency=low
* Automatic Nightly build of AlternC-${module}
* `cat ~/old`
-- Nightly Build <nightly@alternc.org> `date -R`
EOF
cat debian/changelog.orig >>debian/changelog
debuild -k0x1994905A >/dev/null
cd ..
rm -rf alternc-${module}
mv *.deb *.dsc *.build *.changes *.tar.gz ~/www/$DATE
done
rm ~/www/latest
ln -sf ~/www/$DATE ~/www/latest
cd ~/www
apt-ftparchive packages $DATE/ | tee $DATE/Packages | gzip -c9 >$DATE/Packages.gz
(echo "Suite: $DATE"
echo "Codename: latest"
echo "Components: main"
echo "Origin: AlternC"
echo "Label: AlternC Nightly Build dated $DATE"
echo "Architectures: i386 amd64"
echo "Description: This repository contains a nightly build of all AlternC packages"
apt-ftparchive release $DATE/ ) >$DATE/Release
gpg -ba $DATE/Release
mv $DATE/Release.asc $DATE/Release.gpg

30
nightlybuild/nightly.key Normal file
View File

@ -0,0 +1,30 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)
mQENBE2OldQBCACYJij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