Skip to content
Snippets Groups Projects
Commit 4ea647ec authored by Ian Cordasco's avatar Ian Cordasco
Browse files

Merge pull request #293 from msabramo/bring_tox.ini_from_1.0-alpha_branch

tox.ini: Bring over changes from 1.0-alpha branch
parents ec5eb5fb 260cb49b
No related branches found
No related tags found
No related merge requests found
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- pypy
# command to run tests, e.g. python setup.py test
before_script:
- pip install -r dev-requirements.txt
- pip install tox
- pip install -U requests"$REQUESTS_VERSION"
 
# test script
script: make travis
script: tox -e ${TOX_ENV}
notifications:
on_success: change
on_failure: always
on_success: change
on_failure: always
 
env:
global:
- TRAVIS_GH3="True"
matrix:
- REQUESTS_VERSION="==2.0.1"
- REQUESTS_VERSION="" # Latest
- TOX_ENV=py26 REQUESTS_VERSION="==2.0.1"
- TOX_ENV=py27 REQUESTS_VERSION="==2.0.1"
- TOX_ENV=py32 REQUESTS_VERSION="==2.0.1"
- TOX_ENV=py33 REQUESTS_VERSION="==2.0.1"
- TOX_ENV=py34 REQUESTS_VERSION="==2.0.1"
- TOX_ENV=pypy REQUESTS_VERSION="==2.0.1"
- TOX_ENV=py26 REQUESTS_VERSION=""
- TOX_ENV=py27 REQUESTS_VERSION=""
- TOX_ENV=py32 REQUESTS_VERSION=""
- TOX_ENV=py33 REQUESTS_VERSION=""
- TOX_ENV=py34 REQUESTS_VERSION=""
- TOX_ENV=pypy REQUESTS_VERSION=""
- TOX_ENV=py27-flake8
- TOX_ENV=py34-flake8
matrix:
allow_failures:
- env: TOX_ENV=py27-flake8
- env: TOX_ENV=py34-flake8
[tox]
envlist = py26,py27,py32,py33,py34
envlist = py26,py27,py32,py33,py34,pypy,{py27,py34}-flake8
[testenv]
deps =
requests>=1.2.3
coverage>=3.5.2
mock>=1.0.1
commands =
python setup.py test
pip_pre = False
deps = -rdev-requirements.txt
commands = py.test
[testenv:pypy]
deps =
-rdev-requirements.txt
unittest2
commands = py.test
 
[testenv:py26]
deps =
requests>=1.2.3
coverage>=3.5.2
mock>=1.0.1
commands =
python setup.py test
deps =
-rdev-requirements.txt
unittest2
commands = py.test
[testenv:py27]
deps =
-rdev-requirements.txt
unittest2
commands = py.test
[testenv:py27-flake8]
basepython = python2.7
deps =
flake8
flake8-docstrings
commands = flake8 github3/
[testenv:py34-flake8]
basepython = python3.4
deps =
flake8
flake8-docstrings
commands = flake8 github3/
 
[pytest]
addopts = -q tests/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment