Revision: 7535
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7535&view=rev
Author:   astraw
Date:     2009-08-23 05:18:45 +0000 (Sun, 23 Aug 2009)

Log Message:
-----------
add buildbot scripts

Added Paths:
-----------
    trunk/matplotlib/test/_buildbot_install.py
    trunk/matplotlib/test/_buildbot_test.py
    trunk/matplotlib/test/_buildbot_util.py

Added: trunk/matplotlib/test/_buildbot_install.py
===================================================================
--- trunk/matplotlib/test/_buildbot_install.py                          (rev 0)
+++ trunk/matplotlib/test/_buildbot_install.py  2009-08-23 05:18:45 UTC (rev 
7535)
@@ -0,0 +1,15 @@
+"""This script will install matplotlib to a virtual environment to
+faciltate testing."""
+import shutil, os, sys
+from subprocess import Popen, PIPE, STDOUT
+
+from _buildbot_util import check_call
+
+TARGET='PYmpl'
+
+if os.path.exists(TARGET):
+    shutil.rmtree(TARGET)
+
+check_call('virtualenv %s'%(TARGET,))
+TARGET_py = os.path.join(TARGET,'bin','python')
+check_call('%s setup.py install'%TARGET_py)

Added: trunk/matplotlib/test/_buildbot_test.py
===================================================================
--- trunk/matplotlib/test/_buildbot_test.py                             (rev 0)
+++ trunk/matplotlib/test/_buildbot_test.py     2009-08-23 05:18:45 UTC (rev 
7535)
@@ -0,0 +1,15 @@
+"""This script will install matplotlib to a virtual environment to
+faciltate testing."""
+import shutil, os, sys
+from subprocess import Popen, PIPE, STDOUT
+
+from _buildbot_util import check_call
+
+TARGET=os.path.abspath('PYmpl')
+
+if not os.path.exists(TARGET):
+    raise RuntimeError('the virtualenv target directory was not found')
+
+TARGET_py = os.path.join(TARGET,'bin','python')
+check_call('%s run-mpl-test.py --all'%TARGET_py,
+           cwd='test')

Added: trunk/matplotlib/test/_buildbot_util.py
===================================================================
--- trunk/matplotlib/test/_buildbot_util.py                             (rev 0)
+++ trunk/matplotlib/test/_buildbot_util.py     2009-08-23 05:18:45 UTC (rev 
7535)
@@ -0,0 +1,20 @@
+"""Module to help _buildbot_*.py scripts."""
+
+import shutil, os, sys
+from subprocess import Popen, PIPE, STDOUT
+
+def check_call(args,**kwargs):
+    # print
+    # print args
+    # print '**kwargs'
+    # print kwargs
+    # print
+
+    # This use of Popen is copied from matplotlib.texmanager (Use of
+    # close_fds seems a bit mysterious.)
+
+    p = Popen(args, shell=True, 
+              close_fds=(sys.platform!='win32'),**kwargs)
+    p.wait()
+    if p.returncode!=0:
+        raise RuntimeError('returncode is %s'%p.returncode)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to