mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-20 18:25:48 +01:00
automated: create log symlinks in advance & previous nightly log symlink
will add previous lts symlink later
This commit is contained in:
parent
67b756b1f4
commit
7d6d600dd0
@ -4,6 +4,6 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
git pull
|
||||
LOG_FILE="$1-build-$(date -u +%F_%T).log"
|
||||
time script -q -c "./build.sh $*" $LOG_FILE
|
||||
ln -sf $LOG_FILE lts-build-last.log
|
||||
time script -q -c "./build.sh $*" $LOG_FILE
|
||||
date
|
||||
|
||||
@ -10,11 +10,14 @@ esac
|
||||
while true; do
|
||||
git pull
|
||||
LOG_FILE="nightly-build-$(date -u +%F_%T).log"
|
||||
if [ -L nightly-build-last.log ]; then
|
||||
mv -f nightly-build-last.log nightly-build-previous.log
|
||||
fi
|
||||
ln -sf $LOG_FILE nightly-build-last.log
|
||||
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" $LOG_FILE
|
||||
${cmd:+exit 0}
|
||||
${once:+date; exit 0}
|
||||
echo "$0: run completed at $(date)"
|
||||
ln -sf $LOG_FILE nightly-build-last.log
|
||||
echo
|
||||
sleep 99m
|
||||
echo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user