Skip to content

Commit 1e3bb4c

Browse files
committed
Add dotfiles and tox.ini
1 parent 46a4513 commit 1e3bb4c

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*~
2+
*.pyc
3+
*.egg-info
4+
build/*
5+
dist/*
6+
.tox
7+
.coverage
8+
tests/htmlcov

.reviewboardrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REVIEWBOARD_URL = 'https://rbcommons.com/s/twitter/'
2+
REPOSITORY = 'pex'

tox.ini

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Tox (http://tox.readthedocs.org) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the tornado
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
6+
[tox]
7+
envlist =
8+
# Basic configurations: Run the tests in both minimal installations
9+
# and with all optional dependencies.
10+
py26,
11+
py27,
12+
py33,
13+
py34,
14+
pypy
15+
16+
[testenv]
17+
commands = py.test --basetemp={envtmpdir} -n 4 {posargs:}
18+
19+
deps =
20+
pytest
21+
pytest-cov
22+
pytest-xdist
23+
24+
# python will import relative to the current working directory by default,
25+
# so cd into the tox working directory to avoid picking up the working
26+
# copy of the files (especially important for the speedups module).
27+
changedir = tests
28+
29+
# tox 1.6 passes --pre to pip by default, which currently has problems
30+
# installing pycurl and monotime (https://github.com/pypa/pip/issues/1405).
31+
# Remove it (it's not a part of {opts}) to only install real releases.
32+
install_command = pip install {opts} {packages}
33+
34+
[testenv:py26]
35+
basepython = python2.6
36+
37+
[testenv:py27]
38+
basepython = python2.7
39+
40+
[testenv:coverage]
41+
basepython = python2.7
42+
commands = py.test \
43+
--basetemp={envtmpdir} \
44+
-n 4 \
45+
--cov=pex --cov-report=term-missing --cov-report=html \
46+
{posargs:}
47+
48+
[testenv:py33]
49+
basepython = python3.3
50+
51+
[testenv:py34]
52+
basepython = python3.4
53+
54+
[testenv:pypy]
55+
basepython = pypy
56+
57+
[testenv:jython]
58+
basepython = jython

0 commit comments

Comments
 (0)