scripts: add nightly script with basic logging support

This commit is contained in:
Franco Fichtner 2017-08-05 13:07:27 +02:00
parent a7112fd3e4
commit 12717fff77
4 changed files with 27 additions and 4 deletions

View File

@ -207,7 +207,8 @@ export PACKAGESDIR="/.pkg"
# define and bootstrap target directories
export IMAGESDIR="/tmp/images"
export SETSDIR="/tmp/sets"
mkdir -p ${IMAGESDIR} ${SETSDIR}
export LOGSDIR="/tmp/logs"
mkdir -p ${IMAGESDIR} ${SETSDIR} ${LOGSDIR}
# automatically expanded product stuff
export PRODUCT_PRIVKEY=${PRODUCT_PRIVKEY:-"${CONFIGDIR}/repo.key"}

10
scripts/batch.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# simple batch script for release builds
for FLAVOUR in OpenSSL LibreSSL; do
make clean-obj
make ${*} FLAVOUR=${FLAVOUR}
done
make clean-obj

15
scripts/nightly.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# nightly build script
make clean-obj
for STAGE in update base kernel distfiles; do
# we don't normally clean these stages
time make ${STAGE} 2>&1 > /tmp/logs/${STAGE}.log
done
for FLAVOUR in OpenSSL LibreSSL; do
make clean-packages FLAVOUR=${FLAVOUR}
time make packages FLAVOUR=${FLAVOUR} 2>&1 > /tmp/logs/packages-${FLAVOUR}.log
done

View File

@ -1,3 +0,0 @@
# simple batch script for release builds
make clean-obj && make ${*} FLAVOUR=OpenSSL && make clean-obj
make clean-obj && make ${*} FLAVOUR=LibreSSL && make clean-obj