Home | History | Annotate | Download | only in apitools
      1 [tox]
      2 envlist = py26,py27,pypy,py34,py35,lint,cover,py27oldoauth2client
      3 
      4 [testenv]
      5 deps =
      6     nose
      7     python-gflags==3.0.6
      8 commands =
      9     pip install google-apitools[testing]
     10     nosetests []
     11 passenv = TRAVIS*
     12 
     13 [testenv:py27oldoauth2client]
     14 commands =
     15     pip install oauth2client==1.5.2
     16     {[testenv]commands}
     17 deps = {[testenv]deps}
     18 
     19 [testenv:py34]
     20 basepython = python3.4
     21 deps =
     22     mock
     23     nose
     24     unittest2
     25 commands = nosetests []
     26 
     27 [testenv:py35]
     28 basepython = python3.5
     29 deps =
     30     mock
     31     nose
     32     unittest2
     33 commands = nosetests []
     34 
     35 [pep8]
     36 exclude = samples/*_sample/*/*,*/testdata/*,*.egg/,*.egg-info/,.*/,ez_setup.py,build
     37 verbose = 1
     38 
     39 [testenv:lint]
     40 basepython =
     41     python2.7
     42 commands =
     43     pip install six google-apitools[testing]
     44     pep8
     45     python run_pylint.py
     46 deps =
     47     pep8
     48     pylint
     49     unittest2
     50 
     51 [testenv:cover]
     52 basepython =
     53     python2.7
     54 commands =
     55     nosetests --with-xunit --with-xcoverage --cover-package=apitools --nocapture --cover-erase --cover-tests --cover-branches []
     56 deps =
     57     google-apputils
     58     python-gflags==3.0.6
     59     mock
     60     nose
     61     unittest2
     62     coverage
     63     nosexcover
     64 
     65 [testenv:coveralls]
     66 basepython = {[testenv:cover]basepython}
     67 commands =
     68     {[testenv:cover]commands}
     69     coveralls
     70 deps =
     71     {[testenv:cover]deps}
     72     coveralls
     73 
     74 [testenv:transfer_coverage]
     75 basepython =
     76     python2.7
     77 deps =
     78     mock
     79     nose
     80     unittest2
     81     coverage
     82 commands =
     83     coverage run --branch -p samples/storage_sample/downloads_test.py
     84     coverage run --branch -p samples/storage_sample/uploads_test.py
     85     coverage run --branch -p apitools/base/py/transfer_test.py
     86     coverage combine
     87     coverage html
     88