• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[tox]
2envlist = py26,py27,py33,py34,pypy,cover
3
4[testenv]
5basedeps = keyring
6           mock
7           pycrypto==2.6
8           webtest
9           nose
10deps = {[testenv]basedeps}
11       django
12       pyopenssl==0.14
13setenv = PYTHONPATH=../google_appengine
14commands = nosetests --ignore-files=test_appengine\.py {posargs}
15
16# whitelist
17branches:
18  only:
19    - master
20    - python3
21
22[testenv:cover]
23basepython = python2.7
24commands =
25    nosetests --with-xunit --with-xcoverage --cover-package=oauth2client --nocapture --cover-erase --cover-tests --cover-branches --ignore-files=test_appengine\.py --cover-min-percentage=60
26deps = {[testenv]deps}
27    coverage
28    nosexcover
29
30[testenv:coveralls]
31basepython = {[testenv:cover]basepython}
32commands =
33    {[testenv:cover]commands}
34    coveralls
35deps =
36    {[testenv:cover]deps}
37    coveralls
38passenv = {[testenv:system-tests]passenv}
39
40[testenv:docs]
41basepython = python2.7
42deps =
43    {[testenv:cover]deps}
44    python-gflags
45    pyyaml
46    sphinx>=1.3b2
47    sphinx-rtd-theme
48commands = {toxinidir}/scripts/build-docs
49
50[testenv:pushdocs]
51basepython = python2.7
52deps =
53    {[testenv:docs]deps}
54    ghp-import
55commands =
56    {toxinidir}/scripts/build-docs
57    {toxinidir}/scripts/push-docs
58
59[testenv:py26]
60basepython = python2.6
61deps = {[testenv]basedeps}
62       django>=1.5,<1.6
63       pyopenssl==0.14
64
65[testenv:py26openssl13]
66basepython = python2.6
67deps = {[testenv]basedeps}
68       django>=1.5,<1.6
69       pyopenssl<0.14
70
71[testenv:py27openssl13]
72basepython = python2.7
73deps = {[testenv]basedeps}
74       django>=1.5,<1.6
75       pyopenssl<0.14
76
77[testenv:system-tests]
78basepython =
79    python2.7
80commands =
81    {toxinidir}/scripts/run_system_tests.sh
82deps =
83    pycrypto==2.6
84    pyopenssl==0.14
85passenv = GOOGLE_* OAUTH2CLIENT_* TRAVIS*
86
87[testenv:system-tests3]
88basepython =
89    python3.4
90commands =
91    {toxinidir}/scripts/run_system_tests.sh
92deps =
93    pycrypto==2.6
94    pyopenssl==0.14
95passenv = {[testenv:system-tests]passenv}
96