Jason R. Coombs avatar Jason R. Coombs committed 912a461

Updated continuous integration tests

Comments (0)

Files changed (3)

jenkins/config.xml

 <?xml version='1.0' encoding='UTF-8'?>
-<project>
+<project xmlns:py="http://genshi.edgewall.org/">
   <actions/>
   <description></description>
+  <logRotator>
+    <daysToKeep>30</daysToKeep>
+    <numToKeep>7</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
   <keepDependencies>false</keepDependencies>
   <properties/>
   <scm class="hudson.plugins.mercurial.MercurialSCM">
-    <source>https://bitbucket.org/yougov/pmxbot</source>
+    <source py:content="repo_url" />
     <modules></modules>
+    <branch py:if="branch" py:content="branch" />
     <clean>false</clean>
     <forest>false</forest>
-    <browser class="hudson.plugins.mercurial.browser.BitBucket">
-      <url>https://bitbucket.org/yougov/pmxbot/</url>
+    <browser class="hudson.plugins.mercurial.browser.$browser_plugin">
+      <url py:content="browser_url" />
     </browser>
   </scm>
   <canRoam>true</canRoam>
   <publishers>
     <hudson.tasks.junit.JUnitResultArchiver>
       <testResults>test results.xml</testResults>
-      <keepLongStdio>true</keepLongStdio>
+      <keepLongStdio>false</keepLongStdio>
       <testDataPublishers/>
     </hudson.tasks.junit.JUnitResultArchiver>
   </publishers>
   <buildWrappers/>
-</project>
+</project>
-virtualenv --no-site-packages env
+#!/bin/bash -e
 
-env/bin/python setup.py develop
-env/bin/easy_install pytest pymongo
-env/bin/py.test --junitxml="test results.xml"
+# force YG cheeseshop (for now)
+python2.7 -c "import setuptools; setuptools.setup()" setopt -c easy_install -o index-url -s http://cheese.yougov.net
+python2.7 setup.py ptr --junitxml="test results.xml"
 	long_description = open('README').read(),
 	setup_requires=[
 		'hgtools',
+		'pytest-runner',
+	],
+	tests_require=[
+		'pymongo',
+		'pytest',
 	],
 )
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.