-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
35 lines (28 loc) · 876 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
26
27
28
29
30
31
32
33
34
[tox]
envlist = lint2,lint3,py27,py35
[package]
name = pkgloader
deps =
[testenv]
changedir = {envsitepackagesdir}
deps = nose
coverage
{[package]deps}
commands =
coverage erase
coverage run --rcfile "{toxinidir}/.coveragerc" --include "{[package]name}.py" \
-m nose -P --with-doctest --all-modules {[package]name}.py "{toxinidir}/tests"
coverage html -d "{toxinidir}/tmp/cover-{envname}" \
--title "Coverage for {envname}" \
--rcfile "{toxinidir}/.coveragerc"
coverage report --rcfile "{toxinidir}/.coveragerc"
[testenv:lint2]
basepython = python2.7
deps = prospector[with_everything]
{[package]deps}
commands = prospector --profile {toxinidir}/.prospector.yaml {[package]name}.py
[testenv:lint3]
basepython = python3.5
deps = prospector[with_everything]
{[package]deps}
commands = prospector --profile {toxinidir}/.prospector.yaml {[package]name}.py