aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
blob: 578e3b5f05fb426bb300ed79766db4d97509763f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[tox]
envlist = py26,py27,py33,py34,pypy,cover

[testenv]
basedeps = keyring
           mock
           pycrypto==2.6
           webtest
           nose
deps = {[testenv]basedeps}
       django
       pyopenssl==0.14
setenv = PYTHONPATH=../google_appengine
commands = nosetests --ignore-files=test_appengine\.py {posargs}

# whitelist
branches:
  only:
    - master
    - python3

[testenv:cover]
basepython = python2.7
commands =
    nosetests --with-xunit --with-xcoverage --cover-package=oauth2client --nocapture --cover-erase --cover-tests --cover-branches --ignore-files=test_appengine\.py --cover-min-percentage=60
deps = {[testenv]deps}
    coverage
    nosexcover

[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
    {[testenv:cover]commands}
    coveralls
deps =
    {[testenv:cover]deps}
    coveralls

[testenv:docs]
basepython = python2.7
deps =
    {[testenv:cover]deps}
    python-gflags
    pyyaml
    sphinx>=1.3b2
    sphinx-rtd-theme
commands = {toxinidir}/scripts/build-docs

[testenv:pushdocs]
basepython = python2.7
deps =
    {[testenv:docs]deps}
    ghp-import
commands =
    {toxinidir}/scripts/build-docs
    {toxinidir}/scripts/push-docs

[testenv:py26]
basepython = python2.6
deps = {[testenv]basedeps}
       django>=1.5,<1.6
       pyopenssl==0.14

[testenv:py26openssl13]
basepython = python2.6
deps = {[testenv]basedeps}
       django>=1.5,<1.6
       pyopenssl<0.14

[testenv:py27openssl13]
basepython = python2.7
deps = {[testenv]basedeps}
       django>=1.5,<1.6
       pyopenssl<0.14

[testenv:system-tests]
basepython =
    python2.7
commands =
    {toxinidir}/scripts/run_system_tests.sh
deps =
    pycrypto==2.6
    pyopenssl==0.14

[testenv:system-tests3]
basepython =
    python3.4
commands =
    {toxinidir}/scripts/run_system_tests.sh
deps =
    pycrypto==2.6
    pyopenssl==0.14