Permalink
Browse files

Adds Travis and coveralls

  • Loading branch information...
1 parent 27c5519 commit 50307352160524fb1bbdb2d8ecff4649ad7bc0f8 @ask ask committed Feb 20, 2014
Showing with 89 additions and 0 deletions.
  1. BIN .coverage
  2. +11 −0 .coveragerc
  3. +22 −0 .travis.yml
  4. +2 −0 requirements/test-ci.txt
  5. +54 −0 tox.ini
View
BIN .coverage
Binary file not shown.
View
@@ -0,0 +1,11 @@
+[run]
+branch = 1
+cover_pylib = 0
+omit = amqp.five
+
+[report]
+exclude_lines =
+ pragma: no cover
+
+ for infinity
+omit = */python?.?/*,*/site-packages/*,*/pypy/*
View
@@ -0,0 +1,22 @@
+language: python
+python:
+ - 2.6
+ - 2.7
+ - 3.3
+ - pypy
+before_install:
+ - |
+ deactivate
+ if python --version |& grep PyPy; then
+ sudo apt-add-repository --yes ppa:pypy/ppa
+ sudo apt-get update
+ sudo apt-get install pypy
+ source ~/virtualenv/pypy/bin/activate
+ fi
+ python --version
+ uname -a
+ lsb_release -a
+ sudo pip install tox
+script: tox -v -e $TRAVIS_PYTHON_VERSION -- -v
+after_success:
+ - .tox/$TRAVIS_PYTHON_VERSION/bin/coveralls
View
@@ -0,0 +1,2 @@
+coverage>=3.0
+coveralls
View
54 tox.ini
@@ -0,0 +1,54 @@
+[tox]
+envlist =
+ 2.6,
+ 2.7,
+ 3.3,
+ pypy
+
+[testenv]
+sitepackages = False
+commands = nosetests
+
+[testenv:3.3]
+basepython = python3.3
+deps = -r{toxinidir}/requirements/default.txt
+ -r{toxinidir}/requirements/test.txt
+ -r{toxinidir}/requirements/test-ci.txt
+commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
+ pip install -U -r{toxinidir}/requirements/dev.txt
+ nosetests --with-coverage --cover-inclusive --cover-erase []
+
+[testenv:2.7]
+basepython = python2.7
+deps = -r{toxinidir}/requirements/default.txt
+ -r{toxinidir}/requirements/test.txt
+ -r{toxinidir}/requirements/test-ci.txt
+commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
+ nosetests --with-coverage --cover-inclusive --cover-erase []
+
+[testenv:2.6]
+basepython = python2.6
+deps = -r{toxinidir}/requirements/default.txt
+ -r{toxinidir}/requirements/test.txt
+ -r{toxinidir}/requirements/test-ci.txt
+commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
+ nosetests --with-coverage --cover-inclusive --cover-erase []
+
+[testenv:pypy]
+basepython = pypy
+deps = -r{toxinidir}/requirements/default.txt
+ -r{toxinidir}/requirements/test.txt
+ -r{toxinidir}/requirements/test-ci.txt
+commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
+ pip install -U -r{toxinidir}/requirements/dev.txt
+ nosetests --with-coverage --cover-inclusive --cover-erase []
+
+[testenv:jython]
+basepython = jython
+recreate = True
+where = .tox
+deps = -r{toxinidir}/requirements/default.txt
+ -r{toxinidir}/requirements/test.txt
+ -r{toxinidir}/requirements/test-ci.txt
+commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
+ nosetests --with-coverage --cover-inclusive --cover-erase []

0 comments on commit 5030735

Please sign in to comment.