Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

DoReports.sh 874B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. # cron doesn't seem to like doing this iself...
  3. . /etc/profile
  4. # Path to trunk
  5. MYDIR="/home/dmdirc/google"
  6. # Path to ant binary
  7. ANT="/usr/bin/ant"
  8. # Path to svn binary
  9. SVN="/usr/bin/svn"
  10. #/bin/sh $MYDIR/oblong.sh "Reports" "Style Report Generation Started";
  11. cd $MYDIR
  12. $SVN update
  13. $ANT clean
  14. if [ "$1" = "--all" ]; then
  15. $ANT -k -buildfile $MYDIR/doreports.xml doallreports
  16. elif [ "$1" = "--findbugs" ]; then
  17. $ANT -k -buildfile $MYDIR/style_build.xml findbugs
  18. else
  19. $ANT -k -buildfile $MYDIR/doreports.xml domostreports
  20. fi
  21. LINE=`cat junitreports/overview-summary.html | grep "%</td"`
  22. PASSRATE=`expr "$LINE" : '.*<td>\(.*\)%</td>'`
  23. if [ "${PASSRATE}" = "" ]; then
  24. /bin/sh $MYDIR/oblong.sh "Reports" "Report Generation Complete (Junit tests failed to run)"
  25. else
  26. /bin/sh $MYDIR/oblong.sh "Reports" "Report Generation Complete (Junit Pass Rate: ${PASSRATE}%)"
  27. fi