Browse files

copy in latest from gnop and pushpin

  • Loading branch information...
1 parent b5eebeb commit 202943ce285f19c51b946f2b69d899c8a730754a @zookos zookos committed May 8, 2010
Showing with 16 additions and 6 deletions.
  1. +16 −6
@@ -7,8 +7,14 @@ git log | head -1 > .coverage-results/version-stamp.txt
# This script depends on trialcoverage >= 0.3.5 and on >= 3.3.2a1z8.
# The following lines will print an ugly warning message if those two are not
# installed.
-python -c 'import pkg_resources;pkg_resources.require("trialcoverage>=0.3.5")' &&
-python -c 'import pkg_resources;pkg_resources.require("coverage>=3.3.2a1z8")' && python -c 'import pkg_resources;pkg_resources.require("setuptools_trial")' &&
+python -c 'import pkg_resources;pkg_resources.require("trialcoverage>=0.3.6")' &&
+python -c 'import pkg_resources;pkg_resources.require("coverage>=3.3.2a1z9")' &&
+python -c 'import pkg_resources;pkg_resources.require("setuptools_trial")'
+if [ ${RETVAL} != 0 ] ; then
+ echo "FAILED: we need trialcoverage,, and setuptools_trial. To get the latest release of trialcoverage, run 'sudo easy_install -U trialcoverage'. To get the latest snapshot of Zooko's branch of, run 'sudo easy_install -U'. To get setuptools_trial run 'sudo easy_install setuptools_trial'."
+ exit ${RETVAL}
python -tt flakes
@@ -17,12 +23,16 @@ if [ ${RETVAL} != 0 ] ; then
exit ${RETVAL}
-# Now run the tests once just to make sure all test_requires dependencies are
-# installed before we start paying attention to code coverage.
+PROJNAME=`python --name`
-python trial > /dev/null 2> /dev/null
+mkdir -p .coverage-results/best
+wget${PROJNAME}/lastSuccessfulBuild/artifact/.coverage-results/best/summary.txt -O .coverage-results/best/summary.txt
-python -tt trial --reporter=bwverbose-coverage --rterrors
+# Generate the Twisted Plugins cache so that it will not do so during the test
+# run because doing so causes modules to be imported before the code coverage
+# tool has a chance to start watching which lines get executed.
+python -c 'from twisted.plugin import IPlugin, getPlugins;list(getPlugins(IPlugin))'
+python -tt trial --reporter=bwverbose-coverage --rterrors $*
echo "To see coverage details run 'coverage report' or open htmlcov/index.html."
coverage html

0 comments on commit 202943c

Please sign in to comment.