-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
39 lines (33 loc) · 1.11 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
# pycodestyle settings
[pycodestyle]
max_line_length = 120
# pylint settings
[FORMAT]
max-line-length=120
# tox settings
[tox]
envlist = py27,py3x,lint
[testenv]
deps = -rrequirements-dev.txt
allowlist_externals =
bash
curl
xmllint
rm
commands =
py.test tests
curl -fsSLo {toxworkdir}/{envname}-xmltv.dtd https://raw.githubusercontent.com/XMLTV/xmltv/master/xmltv.dtd
jtv2xmltv -i {toxinidir}/examples/TelecomTVepg.zip -o {toxworkdir}/output-file-{envname}.xml
xmllint --noout --dtdvalid {toxworkdir}/{envname}-xmltv.dtd {toxworkdir}/output-file-{envname}.xml
bash -c 'jtv2xmltv -i {toxinidir}/examples/TelecomTVepg.zip > {toxworkdir}/output-stdout-{envname}.xml'
xmllint --noout --dtdvalid {toxworkdir}/{envname}-xmltv.dtd {toxworkdir}/output-stdout-{envname}.xml
rm {toxworkdir}/output-file-{envname}.xml {toxworkdir}/output-stdout-{envname}.xml {toxworkdir}/{envname}-xmltv.dtd
[testenv:py27]
basepython = python2.7
[testenv:py3x]
basepython = python3.9
[testenv:lint]
basepython = python3.9
commands =
pylint -E --rcfile=tox.ini jtv2xmltv tests
pycodestyle jtv2xmltv tests