Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

DoReports.sh 1.0KB

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