Put HEAD hash in published results output
Change-Id: I184d5c4f066f461d570e9724f05c8d434c812b92
This commit is contained in:
parent
c2638132a5
commit
69e6906032
@ -17,15 +17,22 @@ if [ -n "${GERRIT_USER}" ] ; then
|
||||
EXTRA_ARGS="-u ${GERRIT_USER}"
|
||||
fi
|
||||
|
||||
metadata() {
|
||||
date -u
|
||||
echo -n "reviewstats HEAD: "
|
||||
git rev-parse HEAD
|
||||
echo
|
||||
}
|
||||
|
||||
for project in ${projects} ; do
|
||||
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
|
||||
(date -u && echo && ./openreviews.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openreviews.txt
|
||||
(metadata && ./openreviews.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openreviews.txt
|
||||
./openreviews.py -p ${project} --html ${EXTRA_ARGS} > results/${project_base}-openreviews.html
|
||||
(date -u && echo && ./openapproved.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openapproved.txt
|
||||
(metadata && ./openapproved.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openapproved.txt
|
||||
done
|
||||
|
||||
if [ "${all}" = "1" ] ; then
|
||||
(date -u && echo && ./openreviews.py -a ${EXTRA_ARGS}) > results/all-openreviews.txt.tmp
|
||||
(metadata && ./openreviews.py -a ${EXTRA_ARGS}) > results/all-openreviews.txt.tmp
|
||||
for f in results/*-openreviews.txt ; do
|
||||
(echo && cat $f) >> results/all-openreviews.txt.tmp
|
||||
done
|
||||
@ -37,5 +44,5 @@ if [ "${all}" = "1" ] ; then
|
||||
echo "</html>" >> results/all-openreviews.html.tmp
|
||||
mv results/all-openreviews.html.tmp results/all-openreviews.html
|
||||
|
||||
(date -u && echo && ./openapproved.py -a ${EXTRA_ARGS}) > results/all-openapproved.txt
|
||||
(metadata && ./openapproved.py -a ${EXTRA_ARGS}) > results/all-openapproved.txt
|
||||
fi
|
||||
|
@ -16,15 +16,22 @@ if [ -n "${GERRIT_USER}" ] ; then
|
||||
EXTRA_ARGS="-u ${GERRIT_USER}"
|
||||
fi
|
||||
|
||||
metadata() {
|
||||
date -u
|
||||
echo -n "reviewstats HEAD: "
|
||||
git rev-parse HEAD
|
||||
echo
|
||||
}
|
||||
|
||||
for project in ${projects} ; do
|
||||
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
|
||||
for time in 30 90 180 ; do
|
||||
(date -u && echo && ./reviewers.py -p ${project} -d ${time} ${EXTRA_ARGS}) > results/${project_base}-reviewers-${time}.txt
|
||||
(metadata && ./reviewers.py -p ${project} -d ${time} ${EXTRA_ARGS}) > results/${project_base}-reviewers-${time}.txt
|
||||
done
|
||||
done
|
||||
|
||||
if [ "${all}" = "1" ] ; then
|
||||
for time in 30 90 180 ; do
|
||||
(date -u && echo && ./reviewers.py -a -d ${time} ${EXTRA_ARGS}) > results/all-reviewers-${time}.txt
|
||||
(metadata && ./reviewers.py -a -d ${time} ${EXTRA_ARGS}) > results/all-reviewers-${time}.txt
|
||||
done
|
||||
fi
|
||||
|
@ -6,7 +6,14 @@ if [ -n "${GERRIT_USER}" ] ; then
|
||||
EXTRA_ARGS="-u ${GERRIT_USER}"
|
||||
fi
|
||||
|
||||
metadata() {
|
||||
date -u
|
||||
echo -n "reviewstats HEAD: "
|
||||
git rev-parse HEAD
|
||||
echo
|
||||
}
|
||||
|
||||
for project in ${projects} ; do
|
||||
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
|
||||
(date -u && echo && ./reviews_for_bugs.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-reviews-for-bugs.txt
|
||||
(metadata && ./reviews_for_bugs.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-reviews-for-bugs.txt
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user