-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
25 lines (22 loc) · 941 Bytes
/
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
[tox]
envlist = py3,py27,flake8
skipsdist = True
[testenv]
whitelist_externals=
/bin/bash
setenv = PYTHONPATH = {toxinidir}{:}{toxworkdir}/aussieaddonscommon/lib{:}{toxworkdir}/drmhelper/lib
commands =
/bin/bash -ec "if [ ! -d '{toxworkdir}'/aussieaddonscommon ]; then git clone https://github.com/aussieaddons/script.module.aussieaddonscommon.git '{toxworkdir}'/aussieaddonscommon; fi"
/bin/bash -ec "if [ ! -d '{toxworkdir}'/drmhelper ]; then git clone https://github.com/aussieaddons/script.module.drmhelper.git '{toxworkdir}'/drmhelper; fi"
py.test -s -v {posargs}
deps =
-r{toxinidir}/test-requirements.txt
[flake8]
import-names = resources,aussieaddonscommon,drmhelper,xbmc,xbmcaddon,xbmcgui,xbmcplugin
exclude = venv,.tox,.idea,.git
[testenv:flake8]
basepython = python2.7
deps =
flake8
flake8-import-order
commands = flake8 --application-import-names={[flake8]import-names} --exclude {[flake8]exclude}