2017-02-02 17:28:16 +01:00
|
|
|
[tox]
|
2017-05-09 21:10:53 +02:00
|
|
|
envlist = py26,py27,py33,py34,py35,py36,pycodestyle,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
|
|
|
|
codecov
|
|
|
|
commands =
|
|
|
|
py.test --cov=stix2 stix2/test/
|
|
|
|
codecov
|
|
|
|
|
|
|
|
passenv = CI TRAVIS TRAVIS_*
|
2017-02-02 17:28:16 +01:00
|
|
|
|
|
|
|
[testenv:pycodestyle]
|
2017-03-22 14:13:14 +01:00
|
|
|
deps =
|
|
|
|
flake8
|
|
|
|
pycodestyle
|
|
|
|
commands =
|
|
|
|
pycodestyle ./stix2
|
2017-05-09 21:10:53 +02:00
|
|
|
flake8 --max-line-length=160
|
2017-02-02 17:28:16 +01:00
|
|
|
|
|
|
|
[pycodestyle]
|
|
|
|
ignore=
|
|
|
|
max-line-length=160
|
|
|
|
|
2017-04-07 22:36:42 +02:00
|
|
|
[flake8]
|
|
|
|
max-line-length=160
|
|
|
|
|
2017-05-09 21:10:53 +02:00
|
|
|
[testenv:isort-check]
|
|
|
|
deps = isort
|
2017-05-10 00:03:46 +02:00
|
|
|
commands = isort -rc stix2 -c -df
|
2017-05-09 21:10:53 +02:00
|
|
|
|
2017-02-02 17:28:16 +01:00
|
|
|
[travis]
|
|
|
|
python =
|
|
|
|
2.6: py26
|
|
|
|
2.7: py27, pycodestyle
|
2017-04-18 10:48:04 +02:00
|
|
|
3.3: py33, pycodestyle
|
|
|
|
3.4: py34, pycodestyle
|
|
|
|
3.5: py35, pycodestyle
|
|
|
|
3.6: py36, pycodestyle
|