forked from SickChill/sickchill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (51 loc) · 1.32 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]
skipsdist = true
envlist = py27-{flake8,windows,linux}
[testenv:py27-linux]
platform = linux
whitelist_externals = /bin/rm
envdir = {toxworkdir}/tox
passenv = CI TRAVIS TRAVIS_*
deps =
codecov
nose
rednose
mock
vcrpy-unittest
pytz
pyopenssl
commands =
/bin/rm -f {toxinidir}/tests/sickbeard.db
/bin/rm -f {toxinidir}/tests/cache.db
/bin/rm -f {toxinidir}/tests/failed.db
nosetests -c nose.cfg --nocapture
- codecov -e TRAVIS_JOB_ID TRAVIS_BRANCH
[testenv:py27-windows]
platform = win
whitelist_externals = {env:SYSTEMROOT:C:\Windows\}\System32\cmd.exe
envdir = {toxworkdir}/tox
passenv = CI APPVEYOR APPVEYOR_* PYTHON_ARCH
deps =
codecov
nose
rednose
mock
vcrpy-unittest
pytz
pyopenssl
commands =
cmd /c del /f /q {toxinidir}\tests\sickbeard.db {toxinidir}\tests\cache.db {toxinidir}\tests\failed.db 2> nul
nosetests -c nose.cfg --nocapture
- codecov -e APPVEYOR_REPO_BRANCH PYTHON_ARCH
[testenv:py27-flake8]
platform = linux
envdir = {toxworkdir}/tox
passenv = CI TRAVIS TRAVIS_*
deps =
flake8-coding
isort
commands =
flake8 --select C101,C102,C103 sickbeard sickrage tests SickBeard.py setup.py
isort -rc -c -w 160 -ca -dt -a "from __future__ import unicode_literals" -df sickbeard sickrage
[flake8]
accept-encodings = utf-8, latin-1