43 lines
644 B
INI
43 lines
644 B
INI
[tox]
|
|
envlist = py27,py34,py35,py36,pycodestyle,isort-check
|
|
|
|
[testenv]
|
|
deps =
|
|
-U
|
|
tox
|
|
pytest
|
|
pytest-cov
|
|
coverage
|
|
taxii2-client
|
|
commands =
|
|
py.test --cov=stix2 stix2/test/ --cov-report term-missing
|
|
|
|
passenv = CI TRAVIS TRAVIS_*
|
|
|
|
[testenv:pycodestyle]
|
|
deps =
|
|
flake8
|
|
pycodestyle
|
|
commands =
|
|
pycodestyle ./stix2
|
|
flake8
|
|
|
|
[pycodestyle]
|
|
max-line-length=160
|
|
|
|
[flake8]
|
|
max-line-length=160
|
|
|
|
[testenv:isort-check]
|
|
deps = isort
|
|
commands =
|
|
isort -rc stix2 examples -df
|
|
isort -rc stix2 examples -c
|
|
|
|
[travis]
|
|
python =
|
|
2.7: py27, pycodestyle
|
|
3.4: py34, pycodestyle
|
|
3.5: py35, pycodestyle
|
|
3.6: py36, pycodestyle
|