Scripte zur Auswertung der von den Studierenden eingereichten git repositories
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
444 B

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