Skip to content

Commit

Permalink
Update travis.yml and tox.ini for python2.6 tests
Browse files Browse the repository at this point in the history
Restrict Sphinx version for python2.6
  • Loading branch information
Michael Jurke authored and lkraider committed Jun 27, 2017
1 parent 60f8285 commit 094b5a2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
26 changes: 21 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
language: python
# command to install tox, tox env will install deps.
install: pip install tox
# command to run tests
script: tox

matrix:
include:
# latest python and system-provided python versions
- python: 3.6
env: TOX_ENV=py26,py27,py33,py34,py36,pypy
# extra python versions that need downloading
- python: 3.5
env: TOX_ENV=py35
- python: pypy3
env: TOX_ENV=pypy3

sudo: false

install:
- pip install tox
- pip install python-coveralls

script: tox -e ${TOX_ENV}

after_success:
coveralls
- coveralls

cache: pip
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ python-dateutil>=2.2
pymongo>=2.7.1
tox>=1.9
mock>=1.0.1
Sphinx>=1.1.3
Sphinx>=1.1.3,<=1.5
22 changes: 12 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
[tox]
distshare={homedir}/.tox/distshare
envlist=py26,py27,py33,py34
indexserver=
pypi = https://pypi.python.org/simple
envlist = py26, py27, py33, py34, py35, py36, pypy, pypy3

[testenv]
commands= coverage run --source schematics -m py.test
coverage report
setenv =
PYTHONDONTWRITEBYTECODE=1
deps = -r{toxinidir}/requirements.txt
commands = py.test

[testenv:py34]
commands = coverage run --source=schematics -m py.test
coverage report

[pytest]
addopts=tests
pep8maxlinelength=120
testpaths = tests
pep8maxlinelength = 115

[flake8]
max-line-length = 115
ignore = E203, E221, E261, W391

0 comments on commit 094b5a2

Please sign in to comment.