Skip to content

Commit 0cde621

Browse files
committed
Merge pull request apache#26 from Kami/add_tox_and_travis_ci_config
Add tox and Travis CI
2 parents 3ed0781 + 87e1fbe commit 0cde621

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.swo
44
*.so
55
*.egg-info
6+
.tox
67
build
78
MANIFEST
89
dist

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: python
2+
python: 2.7
3+
env:
4+
- TOX_ENV=py26
5+
- TOX_ENV=py27
6+
- TOX_ENV=pypy
7+
8+
before_install:
9+
- sudo apt-get update -y
10+
- sudo apt-get install -y build-essential python-dev
11+
- sudo apt-get install -y libev4 libev-dev
12+
install:
13+
- pip install tox
14+
15+
script:
16+
- tox -e $TOX_ENV

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tox]
2+
envlist = py26,py27,pypy
3+
4+
[testenv]
5+
deps = nose
6+
mock
7+
ccm
8+
commands = {envpython} setup.py build_ext --inplace
9+
nosetests tests/unit/

0 commit comments

Comments
 (0)