fix .travis.yml, tox.ini

python 2.5 needs an older webob version. so, we add the dependency in
tox.ini. we use tox to run the tests on travis.

remove python 3.3 from travis.yml as it's not there yet.
This commit is contained in:
Ralf Schmitt 2012-12-02 01:37:01 +01:00
parent 2c22237541
commit be52ec1c40
4 changed files with 26 additions and 3 deletions

15
.travis-runtox.py Executable file

@ -0,0 +1,15 @@
#! /usr/bin/env python
def main():
import sys, os
if hasattr(sys, "pypy_version_info"):
v = "pypy"
else:
v = "py%s%s" % (sys.version_info[:2])
os.execvp("tox", ["tox", "-e", v])
if __name__ == "__main__":
main()

@ -4,8 +4,10 @@ python:
- 2.5
- 2.6
- 2.7
- 3.2
- pypy
before_install: pip install --use-mirrors pytest twill paste pastedeploy
before_install: pip install --use-mirrors tox
install: python setup.py install
script: py.test
script: ./.travis-runtox.py

@ -6,7 +6,7 @@ import os
def main():
files = sorted(set([x.strip() for x in os.popen("git ls-files")]) -
set(("make_manifest.py", "commit-standalone",
"vendor", ".gitmodules", ".travis.yml")))
"vendor", ".gitmodules", ".travis.yml", ".travis-runtox.py")))
with open("MANIFEST.in", "w") as f:
for x in files:
f.write("include %s\n" % x)

@ -7,3 +7,9 @@ deps=pytest>=2.3
beautifulsoup4
commands=py.test []
sitepackages=False
[testenv:py25]
deps=pytest>=2.3
WebTest==1.4.3
WebOb==0.9.6.1
BeautifulSoup==3.2.1