Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #14091

Closed
Open
Created 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 an admin enable hashed storage. More information
Assignee
Assign to
Time tracking