cti-python-stix2/tox.ini

39 lines
665 B
INI
Raw Normal View History

2017-02-02 17:28:16 +01:00
[tox]
envlist = py27,py34,py35,py36,style,isort-check
2017-02-02 17:28:16 +01:00
[testenv]
2017-04-18 10:48:04 +02:00
deps =
-U
tox
pytest
pytest-cov
coverage
taxii2-client
2017-04-18 10:48:04 +02:00
commands =
pytest --ignore=stix2/test/test_workbench.py --cov=stix2 stix2/test/ --cov-report term-missing
pytest stix2/test/test_workbench.py --cov=stix2 --cov-report term-missing --cov-append
2017-04-18 10:48:04 +02:00
passenv = CI TRAVIS TRAVIS_*
2017-02-02 17:28:16 +01:00
[testenv:style]
2017-03-22 14:13:14 +01:00
deps =
flake8
commands =
2017-09-11 16:28:46 +02:00
flake8
2017-02-02 17:28:16 +01:00
2017-04-07 22:36:42 +02:00
[flake8]
max-line-length=160
[testenv:isort-check]
deps = isort
2017-07-14 22:02:29 +02:00
commands =
isort -rc stix2 examples -df
isort -rc stix2 examples -c
2017-02-02 17:28:16 +01:00
[travis]
python =
2.7: py27, style
3.4: py34, style
3.5: py35, style
3.6: py36, style