Skip to content

Commit

Permalink
Add Python 2.6 and 3.2 to the tests. Top directory also flake8'ed.
Browse files Browse the repository at this point in the history
  • Loading branch information
vibragiel committed Sep 5, 2013
1 parent 8806576 commit fcde09a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=flake8
- TOXENV=cov
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# A Pythonic wrapper for the Nobel Prize API
[![Build Status](https://travis-ci.org/vibragiel/nobel.png)](https://travis-ci.org/vibragiel/nobel)[![Coverage Status](https://coveralls.io/repos/vibragiel/nobel/badge.png)](https://coveralls.io/r/vibragiel/nobel)
[![Build Status](https://travis-ci.org/vibragiel/nobel.png)](https://travis-ci.org/vibragiel/nobel)
[![Coverage Status](https://coveralls.io/repos/vibragiel/nobel/badge.png)](https://coveralls.io/r/vibragiel/nobel)

A simple Python wrapper for the [Nobel Prize API](http://www.nobelprize.org/nobel_organizations/nobelmedia/nobelprize_org/developer/).

Expand Down
15 changes: 13 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,32 @@
# and then run "tox" from this directory.

[tox]
envlist = py27,py33,flake8,cov
envlist = py26,py27,py32,py33,flake8,cov

[testenv]
commands = {envpython} setup.py test
deps =
requests
pytest
mock
# explicit install command, because tox uses --pre which isn't supported by
# pip 1.3.1
install_command = pip install {opts} {packages}

[testenv:py26]
setenv =
PYENV_VERSION=2.6.6

[testenv:py32]
setenv =
PYENV_VERSION=3.2

[testenv:flake8]
deps=
requests
flake8
commands=
flake8 nobel
flake8 --exclude *egg,.tox,build

[testenv:cov]
basepython=python2.7
Expand Down

0 comments on commit fcde09a

Please sign in to comment.