mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-25 09:23:48 +01:00
Various updates to tests
This commit is contained in:
parent
74acc10385
commit
11455d0bcd
@ -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
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
-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
|
||||||
|
8
tox.ini
8
tox.ini
@ -5,6 +5,7 @@ envlist =
|
|||||||
py27,
|
py27,
|
||||||
py34,
|
py34,
|
||||||
py35,
|
py35,
|
||||||
|
py36,
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython =
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user