Cleanup minor typo
Этот коммит содержится в:
родитель
2c19971048
Коммит
c4c04f6a2c
@ -19,6 +19,9 @@ outputroot=$HOME/hwloc/nightly
|
|||||||
# where to find the build script
|
# where to find the build script
|
||||||
script_uri=contrib/nightly/make_snapshot_tarball
|
script_uri=contrib/nightly/make_snapshot_tarball
|
||||||
|
|
||||||
|
# helper scripts dir
|
||||||
|
script_dir=$HOME/scripts
|
||||||
|
|
||||||
# The tarballs to make
|
# The tarballs to make
|
||||||
if [ $# -eq 0 ] ; then
|
if [ $# -eq 0 ] ; then
|
||||||
# Branches v1.6 and earlier were not updated to build nightly
|
# Branches v1.6 and earlier were not updated to build nightly
|
||||||
@ -54,16 +57,18 @@ cd $build_root
|
|||||||
pending_coverity=$build_root/tarballs-to-run-through-coverity.txt
|
pending_coverity=$build_root/tarballs-to-run-through-coverity.txt
|
||||||
rm -f $pending_coverity
|
rm -f $pending_coverity
|
||||||
touch $pending_coverity
|
touch $pending_coverity
|
||||||
debug=100
|
|
||||||
|
|
||||||
# Loop making them
|
# Loop making them
|
||||||
|
module unload autotools
|
||||||
for branch in $branches; do
|
for branch in $branches; do
|
||||||
|
echo "=== Branch: $branch"
|
||||||
# Get the last tarball version that was made
|
# Get the last tarball version that was made
|
||||||
prev_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
|
prev_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
|
||||||
|
|
||||||
# Form a URL-specific script name
|
# Form a URL-specific script name
|
||||||
script=$branch-`basename $script_uri`
|
script=$branch-`basename $script_uri`
|
||||||
|
|
||||||
|
echo "=== Getting script from: $raw_uri"
|
||||||
wget --quiet --no-check-certificate --tries=10 $raw_uri/$branch/$script_uri -O $script
|
wget --quiet --no-check-certificate --tries=10 $raw_uri/$branch/$script_uri -O $script
|
||||||
if test ! $? -eq 0 ; then
|
if test ! $? -eq 0 ; then
|
||||||
echo "wget of hwloc nightly tarball create script failed."
|
echo "wget of hwloc nightly tarball create script failed."
|
||||||
@ -79,6 +84,7 @@ for branch in $branches; do
|
|||||||
module load "autotools/hwloc-$branch"
|
module load "autotools/hwloc-$branch"
|
||||||
# module load "tex-live/hwloc-$branch"
|
# module load "tex-live/hwloc-$branch"
|
||||||
|
|
||||||
|
echo "=== Running script..."
|
||||||
./$script \
|
./$script \
|
||||||
$build_root/$branch \
|
$build_root/$branch \
|
||||||
$results_addr \
|
$results_addr \
|
||||||
@ -87,25 +93,37 @@ for branch in $branches; do
|
|||||||
$branch \
|
$branch \
|
||||||
>/dev/null 2>&1
|
>/dev/null 2>&1
|
||||||
|
|
||||||
|
module unload autotools
|
||||||
|
echo "=== Done running script"
|
||||||
|
|
||||||
# Did the script generate a new tarball? If so, save it so that we can
|
# Did the script generate a new tarball? If so, save it so that we can
|
||||||
# spawn the coverity checker on it afterwards. Only for this for the
|
# spawn the coverity checker on it afterwards. Only for this for the
|
||||||
# master (for now).
|
# master (for now).
|
||||||
latest_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
|
latest_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
|
||||||
|
echo "=== Latest snapshot: $latest_snapshot"
|
||||||
if test "$prev_snapshot" != "$latest_snapshot" && \
|
if test "$prev_snapshot" != "$latest_snapshot" && \
|
||||||
test "$branch" = "master"; then
|
test "$branch" = "master"; then
|
||||||
|
echo "=== Saving output for a Coverity run"
|
||||||
echo "$outputroot/$branch/hwloc-$latest_snapshot.tar.bz2" >> $pending_coverity
|
echo "$outputroot/$branch/hwloc-$latest_snapshot.tar.bz2" >> $pending_coverity
|
||||||
echo "=== Posting tarball to open-mpi.org"
|
echo "=== Posting tarball to open-mpi.org"
|
||||||
# tell the web server to cleanup old nightly tarballs
|
# tell the web server to cleanup old nightly tarballs
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
|
ssh -p 2222 ompiteam@192.185.39.252 "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
|
||||||
# upload the new ones
|
# upload the new ones
|
||||||
scp -P 2222 $outputroot/$branch/hwloc-$latest_snapshot.tar.* ompiteam@192.185.39.252:public_html/software/hwloc/nightly/$branch/
|
scp -P 2222 $outputroot/$branch/hwloc-$latest_snapshot.tar.* ompiteam@192.185.39.252:public_html/software/hwloc/nightly/$branch/
|
||||||
scp -P 2222 $outputroot/$branch/$latest_snapshot.txt ompiteam@192.185.39.252:public_html/software/hwloc/nightly/$branch/
|
scp -P 2222 $outputroot/$branch/latest_snapshot.txt ompiteam@192.185.39.252:public_html/software/hwloc/nightly/$branch/
|
||||||
# direct the web server to regenerate the checksums
|
# direct the web server to regenerate the checksums
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
|
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
|
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
|
||||||
|
else
|
||||||
|
echo "=== NOT saving output for a Coverity run"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
module unload autotools
|
# Failed builds are not removed. But if a human forgets to come
|
||||||
|
# in here and clean up the old failed builds, we can accumulate
|
||||||
|
# many over time. So remove any old failed builds that are over
|
||||||
|
# 4 weeks old.
|
||||||
|
${script_dir}/remove-old.pl 7 $build_root/$branch
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# If we had any new snapshots to send to coverity, process them now
|
# If we had any new snapshots to send to coverity, process them now
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user