Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn testing Python 2.6 in Travis on #382

Merged
merged 6 commits into from Oct 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -4,11 +4,14 @@ python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"

# Twisted dropped Python 2.6 support, so install a compatible version on 2.6
install:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't unittest2 required in 2.6?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, and it's placed in the tests_require list in setup.py

- pip install --upgrade pip setuptools
- pip install -r test-requirements.txt
- pip install -e .[commands,consumers]
- pip install nose mock sqlalchemy unittest2
script: nosetests -v
script: python setup.py nosetests
notifications:
email: false
irc:
Expand All @@ -20,3 +23,4 @@ matrix:
allow_failures:
- python: "3.3"
- python: "3.4"
- python: "3.5"
2 changes: 2 additions & 0 deletions setup.cfg
@@ -1,3 +1,5 @@
[nosetests]

where=fedmsg/tests
verbosity=2
detailed-errors=1
3 changes: 3 additions & 0 deletions setup.py
Expand Up @@ -96,6 +96,9 @@
))
tests_require = [
'nose',
'moksha.hub',
'pygments',
'psutil',
'sqlalchemy', # For the persistent-store test(s).
]

Expand Down
11 changes: 11 additions & 0 deletions test-requirements.txt
@@ -0,0 +1,11 @@
nose
moksha.hub
pygments
psutil
sqlalchemy
mock; python_version <= '2.7'
argparse; python_version <= '2.6'
ordereddict; python_version <= '2.6'
logutils; python_version <= '2.6'
unittest2; python_version <= '2.6'
Twisted==12.2; python_version <= '2.6'
6 changes: 3 additions & 3 deletions tox.ini
Expand Up @@ -3,17 +3,17 @@ envlist = py{27}-six{13,17,19}
downloadcache = {toxworkdir}/_download/

[testenv]
recreate = True
basepython =
py26: python2.6
py27: python2.7
py34: python3.4
py35: python3.5
deps =
six13: six==1.3.0
six17: six==1.7.3
six19: six>=1.9.0
nose
mock
sqlalchemy
sitepackages = False
commands =
nosetests {posargs}
python setup.py nosetests