diff options
| author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-09-01 00:09:32 -0400 | 
|---|---|---|
| committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-09-01 00:52:28 -0400 | 
| commit | 2a46b146135aa5694eb9de288c24037051268fdf (patch) | |
| tree | 06708a1234c3083372a4a75f29cfd57bf4637a53 | |
| parent | 6cd459bb1474488bd5f81dbe73a70b19e62ab0c3 (diff) | |
[tests] tox configuration
| -rw-r--r-- | Makefile | 12 | ||||
| -rw-r--r-- | setup.cfg | 18 | ||||
| -rw-r--r-- | tox.ini | 26 | 
3 files changed, 54 insertions, 2 deletions
| diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..43df370 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +clean: +	find . -type f -name "*.py[co]" -delete +	find . -type d -name "__pycache__" -delete + +dev-mail: +	pip install -e '.[mail]' + +dev-all: +	pip install -e '.[all]' + +uninstall: +	pip uninstall leap.bitmask @@ -1,10 +1,10 @@  [pep8]  exclude = versioneer.py,_version.py,*.egg,build,dist,docs -ignore = E731 +ignore = E731 E402  [flake8]  exclude = versioneer.py,_version.py,*.egg,build,dist,docs -ignore = E731 +ignore = E731 E402  [versioneer]  VCS = git @@ -12,3 +12,17 @@ style = pep440  versionfile_source = src/leap/bitmask/_version.py  versionfile_build = leap/bitmask/_version.py  tag_prefix =  + +[tool:pytest] +pep8ignore = +    * E731 E402 +    docs/conf.py ALL +    versioneer.py ALL +    _version.py ALL +    *.egg ALL + +[coverage:run] +branch = True + +[coverage:html] +directory = cov_html @@ -0,0 +1,26 @@ +[tox] +envlist = py27 + +[testenv] +commands = py.test --cov-report=html \ +                   --cov-report=term \ +		   --cov=leap.bitmask \ +		   --pep8 {posargs} +deps = +    mock +    pep8 +    pytest +    pytest-pep8 +    pytest-cov +    setuptools-trial +    gnupg +    leap.soledad.common + +    # move this to another env! +    #leap.soledad.client +    -e../soledad/client +    -e. +setenv = +    HOME=/tmp + + | 
