Skip to content
Permalink
Browse files

First crack at using tox.

  • Loading branch information
richardkiss committed Jun 24, 2014
1 parent 06d607a commit 30f0a7e4d21d646a379d96fb46cf169b404fad91
@@ -6,3 +6,4 @@ build
files.txt
*egg-info
.DS_STORE
.tox
@@ -4,6 +4,6 @@ python:
- "3.3"
- "pypy"
# command to install dependencies
install: "pip install pytest"
install: "pip install pytest tox"
# command to run tests
script: PYTHONPATH=`pwd` py.test pycoin/test/
script: tox
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -17,7 +17,7 @@ class ScriptsTest(unittest.TestCase):
def launch_tool(self, tool):
# set
python_path = sys.executable
script_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "scripts"))
script_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "pycoin", "scripts"))
cwd = os.getcwd()
os.chdir(script_dir)
tool = "%s %s" % (python_path, tool)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 tox.ini
@@ -0,0 +1,12 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py32, py33, pypy

[testenv]
commands = py.test tests
deps =
pytest

0 comments on commit 30f0a7e

Please sign in to comment.
You can’t perform that action at this time.