2015-11-16 23:19:20 +01:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 2.7
|
2015-12-05 04:40:26 +01:00
|
|
|
- 3.4
|
2015-11-16 23:19:20 +01:00
|
|
|
- 3.5
|
2018-03-16 08:27:50 +01:00
|
|
|
- 3.6
|
2015-11-16 23:19:20 +01:00
|
|
|
- pypy
|
|
|
|
|
|
|
|
install:
|
2018-03-16 08:27:50 +01:00
|
|
|
- travis_retry pip install -q -r requirements-tests.txt
|
2018-02-14 23:10:41 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
# stop the build if there are Python syntax errors or undefined names.
|
2018-03-16 08:34:15 +01:00
|
|
|
- flake8 sshuttle --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
2018-02-14 23:10:41 +01:00
|
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide.
|
2018-03-16 08:34:15 +01:00
|
|
|
- flake8 sshuttle --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
2015-11-16 23:19:20 +01:00
|
|
|
|
|
|
|
script:
|
2015-11-16 23:28:58 +01:00
|
|
|
- PYTHONPATH=. py.test
|