mirror of
https://github.com/YunoHost/cd_build.git
synced 2024-09-03 20:06:24 +02:00
Add test build
This commit is contained in:
parent
8e0d2871cb
commit
5c7100ace0
6 changed files with 31 additions and 13 deletions
16
README.md
16
README.md
|
@ -6,15 +6,15 @@ Requirements
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* Debian Wheezy
|
* Debian Wheezy
|
||||||
* genisoimage
|
* A sudoer
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
```
|
```
|
||||||
wget http://build.yunohost.org/simple-cdd_0.3.14_all.deb
|
wget http://build.yunohost.org/simple-cdd_0.3.14_all.deb
|
||||||
dpkg -i simple-cdd_0.3.14_all.deb
|
sudo dpkg -i simple-cdd_0.3.14_all.deb
|
||||||
apt-get install -f
|
sudo apt-get install -f genisoimage
|
||||||
git clone git://github.com/YunoHost/cd_build.git
|
git clone git://github.com/YunoHost/cd_build.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ Some problems can occur at `dpkg -i` but keep going !
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
```
|
```
|
||||||
cd cd_build
|
cd cd_build
|
||||||
./build-yunohost amd64
|
./build-yunohost amd64
|
||||||
|
@ -34,3 +33,12 @@ Or
|
||||||
```
|
```
|
||||||
./build-yunohost i386
|
./build-yunohost i386
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Troubleshooting
|
||||||
|
---------------
|
||||||
|
|
||||||
|
If you got errors for mysql-password debconf, temporaly change rights on /var/cache/debconf/passwords.dat
|
||||||
|
```
|
||||||
|
sudo chmod 666 /var/cache/debconf/passwords.dat
|
||||||
|
```
|
||||||
|
|
|
@ -8,18 +8,25 @@ function build-i386
|
||||||
{
|
{
|
||||||
cd $BUILD
|
cd $BUILD
|
||||||
build-simple-cdd --dist wheezy --force-preseed --conf ./simple-cdd-i386.conf
|
build-simple-cdd --dist wheezy --force-preseed --conf ./simple-cdd-i386.conf
|
||||||
add-firmware-to images/debian-6.0.7-i386-CD-1.iso images/yunohostv2-$DATE-i386.iso wheezy
|
add-firmware-to images/debian-7.0-i386-CD-1.iso images/yunohostv2-$DATE-i386.iso wheezy
|
||||||
rm images/debian-6.0.7-i386-CD-1.iso
|
rm images/debian-7.0-i386-CD-1.iso
|
||||||
}
|
}
|
||||||
|
|
||||||
function build-amd64
|
function build-amd64
|
||||||
{
|
{
|
||||||
cd $BUILD2
|
cd $BUILD2
|
||||||
build-simple-cdd --dist wheezy --force-preseed --conf ./simple-cdd-amd64.conf
|
build-simple-cdd --dist wheezy --force-preseed --conf ./simple-cdd-amd64.conf
|
||||||
add-firmware-to images/debian-7.1.0-amd64-CD-1.iso images/yunohostv2-$DATE-amd64.iso wheezy
|
add-firmware-to images/debian-7.0-amd64-CD-1.iso images/yunohostv2-$DATE-amd64.iso wheezy
|
||||||
rm images/debian-6.0.7-amd64-CD-1.iso
|
rm images/debian-7.0-amd64-CD-1.iso
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function build-amd64-test
|
||||||
|
{
|
||||||
|
cd $BUILD2
|
||||||
|
build-simple-cdd --dist wheezy --force-preseed --conf ./simple-cdd-amd64-test.conf
|
||||||
|
add-firmware-to images/debian-7.0-amd64-CD-1.iso images/yunohostv2-$DATE-amd64-test.iso wheezy
|
||||||
|
rm images/debian-7.0-amd64-CD-1.iso
|
||||||
|
}
|
||||||
|
|
||||||
if [[ "${1:-1}" = 1 ]]
|
if [[ "${1:-1}" = 1 ]]
|
||||||
then
|
then
|
||||||
|
@ -33,5 +40,8 @@ else
|
||||||
amd64)
|
amd64)
|
||||||
build-amd64
|
build-amd64
|
||||||
;;
|
;;
|
||||||
|
test)
|
||||||
|
build-amd64-test
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
3
profiles/test.preseed
Normal file
3
profiles/test.preseed
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
d-i apt-setup/local2/repository string \
|
||||||
|
http://repo.yunohost.org/ test main
|
||||||
|
d-i apt-setup/local2/key string http://repo.yunohost.org/yunohost.asc
|
|
@ -1,13 +1,12 @@
|
||||||
server="ftp.fr.debian.org"
|
server="ftp.fr.debian.org"
|
||||||
debian_mirror="ftp://$server/debian/"
|
debian_mirror="ftp://$server/debian/"
|
||||||
rsync_debian_mirror="$server::debian"
|
rsync_debian_mirror="$server::debian"
|
||||||
profiles="default"
|
profiles="default test advanced"
|
||||||
mirror_components="main contrib non-free"
|
mirror_components="main contrib non-free"
|
||||||
export ARCH="i386 amd64"
|
export ARCH="amd64"
|
||||||
export DISKINFO="YunoHost $(date --utc +%Y%m%d)"
|
export DISKINFO="YunoHost $(date --utc +%Y%m%d)"
|
||||||
export OMIT_MANUAL=1
|
export OMIT_MANUAL=1
|
||||||
export OMIT_RELEASE_NOTES=1
|
export OMIT_RELEASE_NOTES=1
|
||||||
export INSTALLER_CD=2
|
export INSTALLER_CD=2
|
||||||
export DOJIGDO=0
|
export DOJIGDO=0
|
||||||
all_extras="`pwd`/extras/.vimrc `pwd`/extras/.bashrc"
|
|
||||||
export SPLASHPNG="`pwd`/extras/splash.png"
|
export SPLASHPNG="`pwd`/extras/splash.png"
|
|
@ -9,5 +9,4 @@ export OMIT_MANUAL=1
|
||||||
export OMIT_RELEASE_NOTES=1
|
export OMIT_RELEASE_NOTES=1
|
||||||
export INSTALLER_CD=2
|
export INSTALLER_CD=2
|
||||||
export DOJIGDO=0
|
export DOJIGDO=0
|
||||||
all_extras="`pwd`/extras/.vimrc `pwd`/extras/.bashrc"
|
|
||||||
export SPLASHPNG="`pwd`/extras/splash.png"
|
export SPLASHPNG="`pwd`/extras/splash.png"
|
||||||
|
|
|
@ -9,5 +9,4 @@ export OMIT_MANUAL=1
|
||||||
export OMIT_RELEASE_NOTES=1
|
export OMIT_RELEASE_NOTES=1
|
||||||
export INSTALLER_CD=2
|
export INSTALLER_CD=2
|
||||||
export DOJIGDO=0
|
export DOJIGDO=0
|
||||||
all_extras="`pwd`/extras/.vimrc `pwd`/extras/.bashrc"
|
|
||||||
export SPLASHPNG="`pwd`/extras/splash.png"
|
export SPLASHPNG="`pwd`/extras/splash.png"
|
||||||
|
|
Loading…
Add table
Reference in a new issue