[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #14091 [Stem]: Add tox support for stem
#14091: Add tox support for stem
----------------------------------+------------------------
Reporter: Foxboron | Owner: atagar
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: tox, python, testing | Actual Points:
Parent ID: | Points:
----------------------------------+------------------------
Diff for getting tox support for stem. It will run
everything over all python versions we want to support.
This will also make it easier to get jenkins to run multiple
python versions.
Note: There is a bug where the {{{run_tests.py}}} script does not return
the proper error code(?) for tox, so it will complain about not being
able to execute the given command if there are errors. This should be
easy to solve tho.
https://github.com/Foxboron/stem/commit/0526c0077aded74e1592995ae23f010636e2b736
{{{
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..85d85f1
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,5 @@
+mock
+pyflakes
+pep8
+pycrypto
+tox
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..b0876da
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,11 @@
+[tox]
+envlist = py26,py27,py31,py32,py33,py34
+skipsdist = True
+
+[testenv]
+commands =
+ pip install --allow-all-external -e .
+ python run_tests.py -a
+deps =
+ -rrequirements.txt
+
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14091>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs