Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #14091

Closed
Open
Opened Jan 03, 2015 by Trac@tracbot

Add tox support for stem

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
+

Trac:
Username: Foxboron

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#14091