Skip to content

Commit b4543f1

Browse files
committed
Merge pull request #2 from msabramo/tox_and_travis
Add tox and travis support
2 parents bd033e8 + faaba21 commit b4543f1

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: python
2+
3+
sudo: false
4+
env:
5+
- TOXENV=py27
6+
- TOXENV=py33
7+
- TOXENV=py34
8+
- TOXENV=pypy
9+
10+
install:
11+
- travis_retry pip install tox
12+
13+
script:
14+
- travis_retry tox

requirements-test.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pytest
2+
pytest-capturelog
3+
pytest-cov

tests/__init__.py

Whitespace-only changes.

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Tox (http://tox.testrun.org/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
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 = py27, py33, py34, pypy
8+
9+
[testenv]
10+
deps = -r{toxinidir}/requirements-test.txt
11+
commands = py.test tests/

0 commit comments

Comments
 (0)