forked from oasis-open/cti-stix-elevator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (47 loc) · 1.02 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tox]
envlist = py{27,34,35,36,37}-stix{20,21},style,isort-check,packaging
[testenv]
deps =
-U
tox
pytest
pytest-cov
coverage
maec
setenv =
stix20: VERSION = 2.0
stix21: VERSION = 2.1
commands =
py.test -v --cov=stix2elevator stix2elevator/test/test_idioms.py --cov-report term-missing
py.test -v stix2elevator/test/test_utils.py --cov=stix2elevator --cov-report term-missing --cov-append
stix20: py.test -v stix2elevator/test/test_stepper.py --cov=stix2elevator --cov-report term-missing --cov-append
passenv = CI TRAVIS TRAVIS_*
[testenv:style]
deps =
flake8
commands =
flake8
[testenv:isort-check]
deps = isort
commands =
isort -rc stix2elevator -df
isort -rc stix2elevator -c
[testenv:packaging]
deps =
readme_renderer
commands =
python setup.py check -r -s
[flake8]
ignore = F403,F405,W504
max-line-length=160
[travis]
python =
2.7: py27, style
3.4: py34, style
3.5: py35, style
3.6: py36, style, packaging
3.7: py37, style
[travis:env]
VERSION =
2.0: stix20
2.1: stix21