aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/sra_client/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'python-packages/sra_client/tox.ini')
-rw-r--r--python-packages/sra_client/tox.ini24
1 files changed, 24 insertions, 0 deletions
diff --git a/python-packages/sra_client/tox.ini b/python-packages/sra_client/tox.ini
new file mode 100644
index 000000000..69d59f4ff
--- /dev/null
+++ b/python-packages/sra_client/tox.ini
@@ -0,0 +1,24 @@
+[tox]
+envlist = py27, py3
+
+[testenv]
+deps=-r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+
+commands=
+ nosetests \
+ []
+
+[testenv:run_tests_against_test_deployment]
+commands =
+ # install dependencies from real PyPI
+ pip install mypy_extensions pytest
+ # install package-under-test from test PyPI
+ pip install --index-url https://test.pypi.org/legacy/ 0x-sra-client
+ pytest test
+
+[testenv:run_tests_against_deployment]
+deps=pytest
+commands =
+ pip install 0x-sra-client
+ pytest test