Browse Source

add multiple profiles in tox

main
Julien Iguchi-Cartigny 10 years ago
parent
commit
db2b420c29
2 changed files with 25 additions and 31 deletions
  1. +4
    -1
      .travis.yml
  2. +21
    -30
      tox.ini

+ 4
- 1
.travis.yml View File

@@ -1,6 +1,9 @@
language: python language: python
python: python:
- "2.7"
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=docs
- TOX_ENV=flake8
install: install:
- pip install tox pytest - pip install tox pytest
script: script:


+ 21
- 30
tox.ini View File

@@ -1,43 +1,34 @@
[tox] [tox]
minversion=1.3
minversion = 1.3
envlist = py26,py27 envlist = py26,py27
#,py27
#,py27,py32
#,py27,py32
addopts = --ignore=setup.py --ignore=.tox --ignore=setuptools --ignore=third


[pytest]
rsyncdirs = scripts
rsyncignore = .hg third
addopts = -v -v
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=docs
- TOX_ENV=flake8


[testenv:docs]
downloadcache={toxworkdir}/downloadcache
basepython=python
changedir=doc
deps=sphinx
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[tools]
downloadcache={toxworkdir}/downloadcache
testing=
deps=


[testenv] [testenv]
downloadcache={toxworkdir}/downloadcache
distribute=True
sitepackages=False
deps= deps=
pytest pytest

commands= commands=
py.test src
#nosetests
nosetests


[testenv:py26] [testenv:py26]

[testenv:py27]

[testenv:docs]
downloadcache={toxworkdir}/downloadcache downloadcache={toxworkdir}/downloadcache
deps=
unittest2
basepython=python2.7
changedir=doc
deps=sphinx
commands= commands=
py.test src
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:flake8]
basepython=python2.7
deps=flake8
commands=
flake8 djohno


Loading…
Cancel
Save