summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 9 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index e2f1265..df01bf8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,14 +1,17 @@
[tox]
envlist = py27,py34,py35,pypy,pep8
-minversion = 1.6
+minversion = 2.0
skipsdist = True
[testenv]
usedevelop = True
-install_command = pip install -U {opts} {packages}
+install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
setenv =
LANG=en_US.utf8
VIRTUAL_ENV={envdir}
+ BRANCH_NAME=master
+ CLIENT_NAME=python-swiftclient
+ CONSTRAINTS_FILE={env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
@@ -28,11 +31,13 @@ commands =
commands = {posargs}
[testenv:cover]
-commands = python setup.py testr --coverage
+commands = python setup.py testr --coverage
coverage report
[testenv:func]
-setenv = OS_TEST_PATH=tests.functional
+setenv =
+ {[testenv]setenv}
+ OS_TEST_PATH=tests.functional
whitelist_externals =
coverage
rm