1[tox] 2envlist = 3 py27,py33,py34,py35,pypy,pypy3, 4 py2-docs, 5 {py2,py3}-cover,coverage, 6 py27-pyramid{14,15} 7 8[testenv] 9# Most of these are defaults but if you specify any you can't fall back 10# to defaults for others. 11basepython = 12 py27: python2.7 13 py33: python3.3 14 py34: python3.4 15 py35: python3.5 16 pypy: pypy 17 pypy3: pypy3 18 py2: python2.7 19 py3: python3.5 20 21deps = 22 pyramid14: pyramid <= 1.4.99 23 pyramid15: pyramid <= 1.5.99 24 25commands = 26 pip install pyramid_rpc[testing] 27 py27: pip install pyramid_rpc[amf] 28 nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:} 29 30[testenv:py2-cover] 31commands = 32 pip install pyramid_rpc[testing,amf] 33 coverage run --source=pyramid_rpc {envbindir}/nosetests 34 coverage xml -o coverage-py2.xml 35setenv = 36 COVERAGE_FILE=.coverage.py2 37 38[testenv:py3-cover] 39commands = 40 pip install pyramid_rpc[testing] 41 coverage run --source=pyramid_rpc {envbindir}/nosetests 42 coverage xml -o coverage-py3.xml 43setenv = 44 COVERAGE_FILE=.coverage.py3 45 46[testenv:coverage] 47basepython = python3.4 48commands = 49 coverage erase 50 coverage combine 51 coverage xml 52 coverage report --show-missing --fail-under=100 53deps = 54 coverage 55setenv = 56 COVERAGE_FILE=.coverage 57 58[testenv:py2-docs] 59whitelist_externals = make 60commands = 61 pip install pyramid_rpc[docs,amf] 62 make -C docs html epub BUILDDIR={envdir} 63 64# TODO enable py3-docs when they build under py3 65# currently pyamf is required when building the docs because it is imported 66# to generate module docs for pyramid_rpc.amfgateway but pyamf does not 67# support py3 68#[testenv:py3-docs] 69#whitelist_externals = make 70#commands = 71# pip install pyramid_rpc[docs] 72# make -C docs html epub BUILDDIR={envdir} 73