AUTHOR="$*" LOG_FILE=${AUTHOR//\//} LOG_FILE=${LOG_FILE// /}-commits.txt git log --pretty="%H" --author="$AUTHOR" | shuf -n 5 | while read commit_hash; do git checkout $commit_hash ; mvn test ; echo $commit_hash ${PIPESTATUS[0]} >> $LOG_FILE ; done git checkout master echo $AUTHOR cat $LOG_FILE | sort -k 2 -k1 -u | sed -e 's/ 0/ OK/' -e 's/ [0-9]\+/ FAIL/' | tee $LOG_FILE echo . echo --------------- ciip-list-commits-per-author