mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-20 18:25:48 +01:00
automated: add latest symlinks for nightly and lts logs
This commit is contained in:
parent
45b4a17981
commit
808fb07903
@ -150,11 +150,6 @@ case $SHORTNAME in
|
||||
nightly) JOBS=16 ;;
|
||||
esac
|
||||
|
||||
if [ -e "$SHORTNAME-build.log" ]
|
||||
then
|
||||
cp -p $SHORTNAME-build.log $SHORTNAME-build.log-previous
|
||||
fi
|
||||
|
||||
# Now do the actual build. We need to first set the owner of the home directory
|
||||
# correctly, so we run the command as root, change owner, and then use sudo to
|
||||
# switch back to the current user
|
||||
|
||||
@ -3,5 +3,7 @@
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
git pull
|
||||
time script -q -c "./build.sh $*" $1-build-$(date -u +%F_%T).log
|
||||
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
|
||||
date
|
||||
|
||||
@ -9,10 +9,12 @@ esac
|
||||
|
||||
while true; do
|
||||
git pull
|
||||
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" nightly-build-$(date -u +%F_%T).log
|
||||
LOG_FILE="nightly-build-$(date -u +%F_%T).log"
|
||||
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd"
|
||||
${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