summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 016e41b15ec005c5b83924bdfa86b7f584052d0c (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#===========================================================================
# Passlib configuration for TOX
# =============================
#
# PASSLIB_TEST_MODE:
#
#    "quick"
#        run the bare minimum tests to ensure functionality.
#        variable-cost hashes are tested at their lowest setting.
#        hash algorithms are only tested against the backend that will
#        be used on the current host. no fuzz testing is done.
#
#    "default"
#        same as ``"quick"``, except: hash algorithms are tested
#        at default levels, and a brief round of fuzz testing is done
#        for each hash.
#
#    "full"
#        extra regression and internal tests are enabled, hash algorithms are tested
#        against all available backends, unavailable ones are mocked whre possible,
#        additional time is devoted to fuzz testing.
#
# testing of m2crypto integration - done in py27 test
#
# testing of django integration - split across various cpython tests:
#  py25 - tests django 1.3
#  py26 - tests no django
#  py27 - tests latest django
#
# testing of bcrypt backends - split across various cpython tests:
#  py25 - tests builtin bcrypt
#  py27 - tests py-bcrypt, bcryptor
#===========================================================================

#===========================================================================
# global config
#===========================================================================
[tox]
minversion=1.3
envlist = py27,py32,py25,py26,py31,py33,pypy1.5,pypy16,pypy17,pypy18,pypy19,jython,gae25,gae27

#===========================================================================
# stock CPython VMs
#===========================================================================
[testenv]
setenv =
    PASSLIB_TEST_MODE = full
changedir = {envdir}
commands =
    nosetests {posargs:passlib.tests}
deps =
    nose
    coverage
    unittest2

[testenv:py25]
deps =
    nose
    coverage
    # unittest2 omitted, to test backport code
    django<1.4

[testenv:py27]
deps =
    nose
    coverage
    unittest2
    py-bcrypt
    bcryptor
    django
    M2Crypto

[testenv:py31]
deps =
    nose
    unittest2py3k

[testenv:py32]
deps =
    nose
    coverage
    unittest2py3k

[testenv:py33]
deps =
    nose
    coverage
    unittest2py3k

#===========================================================================
# PyPy VM - all releases currently target Python 2.7
#===========================================================================
[testenv:pypy15]
basepython = pypy1.5

[testenv:pypy16]
basepython = pypy1.6

[testenv:pypy17]
basepython = pypy1.7

[testenv:pypy18]
basepython = pypy1.8

[testenv:pypy19]
basepython = pypy1.9

#===========================================================================
# Jython - no special directives, currently same as py25
#===========================================================================

#===========================================================================
# Google App Engine integration
#===========================================================================
[testenv:gae25]
basepython = python2.5
deps =
    # FIXME: getting all kinds of errors when using nosegae 0.2.0 :(
    nose
    nosegae==0.1.9
    unittest2
changedir = {envdir}/lib/python2.5/site-packages
commands =
    # setup custom app.yaml so GAE can run
    python -m passlib.tests.tox_support setup_gae . python

    # FIXME: have to run using --without-sandbox for now,
    # something in nose+GAE+virtualenv won't play nice with eachother.
    nosetests --with-gae --without-sandbox {posargs:passlib/tests}

[testenv:gae27]
basepython = python2.7
deps =
    # FIXME: getting all kinds of errors when using nosegae 0.2.0 :(
    nose
    nosegae==0.1.9
    unittest2
changedir = {envdir}/lib/python2.7/site-packages
commands =
    # setup custom app.yaml so GAE can run
    python -m passlib.tests.tox_support setup_gae . python27

    # TODO: figure out how to select django 1.2 so the extension under gae.

    # FIXME: have to run using --without-sandbox for now,
    # something in nose+GAE+virtualenv won't play nice with eachother.
    nosetests --with-gae --without-sandbox {posargs:passlib/tests}

#===========================================================================
# eof
#===========================================================================