Skip to content

Commit

Permalink
Nightly builds: add minimal console output
Browse files Browse the repository at this point in the history
Useful when running the script interactively
  • Loading branch information
dregad committed Jan 11, 2017
1 parent da573a0 commit bc0a3de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nightly-builds.sh
Expand Up @@ -53,13 +53,15 @@ cat <<-EOF >>$logfile
EOF

# Build the tarballs
echo "$(date +'%F %T') Generating nightly builds for branches:"
refList=$(eval echo origin/{$branches})
echo $refList |sed -r 's/ /\n/g;s/(^|\n)/\1 /g'
$pathTools/buildrelease-repo.py --auto-suffix --ref ${refList// /,} --fresh --docbook $pathBuilds >>$logfile 2>&1
echo >>$logfile


# Delete old nightly builds
echo "Keeping only the most recent $numToKeep" >>$logfile
echo "Keeping only the most recent $numToKeep builds" |tee -a $logfile
cd $pathBuilds
for branch in ${branches//,/ }
do
Expand All @@ -78,4 +80,5 @@ echo >>$logfile


# All done !
echo "$(date +'%F %T') Build complete !" >>$logfile
echo "$(date +'%F %T') Build complete !" |tee -a $logfile
echo "Review logfile in $logfile"

0 comments on commit bc0a3de

Please sign in to comment.