mirror of https://github.com/cowrie/cowrie.git
more tox (#1125)
This commit is contained in:
parent
a1324ddac0
commit
3c99ed531b
8
Makefile
8
Makefile
|
@ -3,10 +3,8 @@
|
||||||
# Dummy target `all`
|
# Dummy target `all`
|
||||||
all:
|
all:
|
||||||
|
|
||||||
# Note --aplication-import-names only works on Python3
|
test:
|
||||||
|
tox
|
||||||
test: lint
|
|
||||||
PYTHONPATH=src trial cowrie
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
python setup.py build sdist bdist
|
python setup.py build sdist bdist
|
||||||
|
@ -15,7 +13,7 @@ docs:
|
||||||
make -C docs html
|
make -C docs html
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
flake8 --count --application-import-names cowrie --max-line-length=120 --statistics --exclude=cowrie-env .
|
tox -e lint
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf _trial_temp build dist
|
rm -rf _trial_temp build dist
|
||||||
|
|
15
tox.ini
15
tox.ini
|
@ -1,8 +1,17 @@
|
||||||
[tox]
|
[tox]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = lint,py27,py37,docs
|
envlist = lint,py27,py34,py35,py36,py37,py38,docs
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
|
||||||
|
[travis]
|
||||||
|
python =
|
||||||
|
2.7: py27
|
||||||
|
3.4: py34
|
||||||
|
3.5: py35
|
||||||
|
3.6: py36
|
||||||
|
3.7: py37, lint, docs
|
||||||
|
3.8-dev: py38
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONPATH = {toxinidir}/src
|
PYTHONPATH = {toxinidir}/src
|
||||||
|
@ -12,13 +21,11 @@ commands =
|
||||||
trial cowrie
|
trial cowrie
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
setenv =
|
|
||||||
PYTHONPATH = {toxinidir}/src
|
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/requirements-dev.txt
|
-r{toxinidir}/requirements-dev.txt
|
||||||
commands =
|
commands =
|
||||||
flake8 --count --application-import-names cowrie --max-line-length=120 --statistics .
|
flake8 --count --application-import-names cowrie --max-line-length=120 --statistics {toxinidir}/src
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
setenv =
|
setenv =
|
||||||
|
|
Loading…
Reference in New Issue