Skip to content

Commit

Permalink
Merge pull request #158 from lepture/travis
Browse files Browse the repository at this point in the history
add more python version in travis and tox. #73
  • Loading branch information
ib-lundgren committed May 28, 2013
2 parents cd14e3d + 122d1a6 commit 21d31ee
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
20 changes: 17 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
language: python
python:
- 2.7
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "pypy"

install:
- pip install tox
- pip install nose pycrypto mock
- python .travis_install.py

script:
- tox
- nosetests -w tests

after_success:
- pip install coveralls
- nosetests --with-coverage --cover-package=oauthlib -w tests
- coveralls

branches:
only:
- master

notifications:
irc: "irc.freenode.org#oauthlib"
5 changes: 5 additions & 0 deletions .travis_install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys
import subprocess

if sys.version_info[0] == 2:
subprocess.call(['pip', 'install', 'unittest2'])
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py26,py27,py32,py33
envlist = py26,py27,py32,py33,pypy

[testenv]
deps=nose
Expand Down

0 comments on commit 21d31ee

Please sign in to comment.