Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

DoReports.sh 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. # cron doesn't do this
  3. . /etc/profile
  4. . ${HOME}/.bashrc
  5. # Used for the report.log to help diagnosing problems
  6. env
  7. # Path to trunk
  8. MYDIR="/home/dmdirc/google"
  9. # Path to scripts
  10. SCRIPTDIR="/home/dmdirc/scripts"
  11. # Path to ant binary
  12. ANT="/usr/bin/ant"
  13. # Path to svn binary
  14. SVN="/usr/bin/svn"
  15. # Increase the memory allowed to be used when running stuff
  16. export ANT_OPTS=-Xmx512m
  17. if [ "${BAMBOO_INSTALL}" != "" ]; then
  18. # Running as bamboo, symlink/create needed things to let it find the results
  19. # of the build
  20. if [ ! -e ${PWD}/reports ]; then
  21. ln -s ${MYDIR}/reports
  22. fi;
  23. if [ ! -e ${PWD}/build ]; then
  24. ln -s ${MYDIR}/build
  25. fi;
  26. fi;
  27. #/bin/sh $MYDIR/oblong.sh "Reports" "Style Report Generation Started";
  28. cd $MYDIR
  29. $SVN update
  30. $ANT clean
  31. # Anti-Clover stupidness!
  32. rm -Rf ${MYDIR}/.clover
  33. mkdir ${MYDIR}/.clover
  34. if [ "$1" = "--all" ]; then
  35. $ANT -k -buildfile $MYDIR/doreports.xml doallreports
  36. elif [ "$1" = "--findbugs" ]; then
  37. $ANT -k -buildfile $MYDIR/style_build.xml findbugs
  38. else
  39. $ANT -k -buildfile $MYDIR/doreports.xml domostreports
  40. fi
  41. # Run junit issue notifier
  42. PHP=`which php`
  43. if [ -e "$SCRIPTDIR/junit-failures.php" -a "${PHP}" != "" ]; then
  44. $PHP -q $SCRIPTDIR/junit-failures.php
  45. fi
  46. # Oblong junit announcement
  47. #LINE=`cat junitreports/overview-summary.html | grep "%</td"`
  48. #PASSRATE=`expr "$LINE" : '.*<td>\(.*\)%</td>'`
  49. #if [ "${PASSRATE}" = "" ]; then
  50. # /bin/sh $MYDIR/oblong.sh "Reports" "Report Generation Complete (Junit tests failed to run)"
  51. #else
  52. # /bin/sh $MYDIR/oblong.sh "Reports" "Report Generation Complete (Junit Pass Rate: ${PASSRATE}%)"
  53. #fi