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

  1. AUTHOR="$*"
  2. LOG_FILE=${AUTHOR//\//}
  3. LOG_FILE=${LOG_FILE// /}-commits.txt
  4. 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
  5. git checkout master
  6. echo $AUTHOR
  7. cat $LOG_FILE | sort -k 2 -k1 -u | sed -e 's/ 0/ OK/' -e 's/ [0-9]\+/ FAIL/' | tee $LOG_FILE
  8. echo .
  9. echo ---------------
  10. ciip-list-commits-per-author