Commit 11455d0b authored by Brian May's avatar Brian May

Various updates to tests

parent 74acc103
...@@ -4,16 +4,17 @@ python: ...@@ -4,16 +4,17 @@ python:
- 2.7 - 2.7
- 3.4 - 3.4
- 3.5 - 3.5
- 3.6
- pypy - pypy
install: install:
- travis_retry pip install -q flake8 pytest mock - travis_retry pip install -q -r requirements-tests.txt
before_script: before_script:
# stop the build if there are Python syntax errors or undefined names. # stop the build if there are Python syntax errors or undefined names.
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics; fi - if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then flake8 sshuttle --count --select=E901,E999,F821,F822,F823 --show-source --statistics; fi
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide. # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide.
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics; fi - if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then flake8 sshuttle --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics; fi
script: script:
- PYTHONPATH=. py.test - PYTHONPATH=. py.test
-r requirements.txt -r requirements.txt
pytest==3.4.2 pytest==3.4.2
mock==2.0.0 mock==2.0.0
flake8==3.5.0
...@@ -5,6 +5,7 @@ envlist = ...@@ -5,6 +5,7 @@ envlist =
py27, py27,
py34, py34,
py35, py35,
py36,
[testenv] [testenv]
basepython = basepython =
...@@ -12,9 +13,10 @@ basepython = ...@@ -12,9 +13,10 @@ basepython =
py27: python2.7 py27: python2.7
py34: python3.4 py34: python3.4
py35: python3.5 py35: python3.5
py36: python3.6
commands = commands =
flake8 sshuttle --count --select=E901,E999,F821,F822,F823 --show-source --statistics
flake8 sshuttle --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
py.test py.test
deps = deps =
pytest -rrequirements-tests.txt
mock
setuptools>=17.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment