aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2017-09-29 01:54:26 -0400
committerTim Harder <radhermit@gmail.com>2017-09-29 01:54:26 -0400
commit277f3c59331c6c0c54a05cdc4359da31055ab790 (patch)
tree11303114cd46f47e1c2b343e70122dfe1d52526a /tox.ini
parentcli.arghparse: ArgumentParser: use an immutable dict for subparsers property (diff)
downloadsnakeoil-277f3c59331c6c0c54a05cdc4359da31055ab790.tar.gz
snakeoil-277f3c59331c6c0c54a05cdc4359da31055ab790.tar.bz2
snakeoil-277f3c59331c6c0c54a05cdc4359da31055ab790.zip
tox: use pip.sh shim to install deps with fallbacks
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 13 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index efe55031..fb3ec560 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,28 +1,38 @@
[tox]
envlist = py27, py34, py35, py36, coverage-report
[testenv]
+install_command = "{toxinidir}"/requirements/pip.sh {packages}
deps =
- -rrequirements/build.txt
- -rrequirements/install.txt
-rrequirements/tox.txt
commands =
coverage run --parallel -m pytest {posargs:-v} "{envsitepackagesdir}"/snakeoil
# generate coverage report
[testenv:coverage-report]
-deps = coverage
skip_install = true
+deps = coverage
commands =
coverage combine
coverage report
# build docs
[testenv:docs]
+skip_install = true
deps =
-rrequirements/docs.txt
commands =
python setup.py build_man build_docs
+# build dist files
+[testenv:dist]
+skip_install = true
+deps =
+ -rrequirements/docs.txt
+ -rrequirements/wheel.txt
+commands =
+ python setup.py sdist
+ python setup.py bdist_wheel
+
# stub for travis-ci
[testenv:travis]
commands =