Project

General

Profile

Download (2.18 KB) Statistics
| Branch: | Tag: | Revision:

root / tox.ini

1
[tox]
2
envlist =
3
    py27-wsgi,
4
    py27-plonetesting-zope2,
5
    py27-plonetesting-zope4,
6
    py27-grok,
7
    coverage-report
8

    
9
[testenv]
10
passenv = DISPLAY GOCEPT_*
11
install_command = pip install {opts} {packages}
12
usedevelop = True
13
setenv =
14
  COVERAGE_FILE=.coverage.{envname}
15
deps =
16
    gocept.pytestlayer
17
    pytest
18
    pytest-cov
19
    pytest-flake8
20
    pytest-remove-stale-bytecode
21
    pytest-rerunfailures
22
    pytest-sugar
23
    mock
24
    gocept.testing
25

    
26
[testenv:py27-wsgi]
27
deps = {[testenv]deps}
28
       gocept.httpserverlayer
29
commands =
30
    py.test {posargs} \
31
            --ignore=src/gocept/selenium/grok \
32
            --ignore=src/gocept/selenium/plonetesting \
33
            --junitxml=junit-{envname}.xml
34

    
35

    
36
[testenv:py27-plonetesting-zope2]
37
deps = {[testenv]deps}
38
       gocept.httpserverlayer[plonetestingz2]
39
       Products.ZCatalog < 3.9999
40
       Products.ZCTextIndex < 4.0
41
       five.globalrequest < 1.9999
42
       Zope2 <= 3.9999
43
       plone.testing < 5.1
44
commands =
45
    py.test {posargs} \
46
            --ignore=src/gocept/selenium/grok \
47
            --ignore=src/gocept/selenium/tests \
48
            --ignore=src/gocept/selenium/scripts \
49
            --junitxml=junit-{envname}.xml
50

    
51
[testenv:py27-plonetesting-zope4]
52
deps = {[testenv]deps}
53
       gocept.httpserverlayer[plonetestingz2]
54
       Products.ZCatalog >= 4.0a1
55
       Zope2 >= 4.0a2
56
       AccessControl >= 4.0a3
57
       ZServer >= 4.0a1
58
       RestrictedPython >= 4.0a1
59
commands =
60
    py.test {posargs} \
61
            --ignore=src/gocept/selenium/grok \
62
            --ignore=src/gocept/selenium/tests \
63
            --ignore=src/gocept/selenium/scripts \
64
            --junitxml=junit-{envname}.xml
65

    
66
[testenv:py27-grok]
67
deps = {[testenv]deps}
68
       zope.app.appsetup
69
       grok
70
       ZODB
71
       gocept.httpserverlayer[zopeappwsgi]
72
commands =
73
    py.test {posargs} \
74
            --ignore=src/gocept/selenium/plonetesting \
75
            --ignore=src/gocept/selenium/tests \
76
            --ignore=src/gocept/selenium/scripts \
77
            --junitxml=junit-{envname}.xml
78

    
79
[testenv:coverage-report]
80
deps = coverage
81
setenv =
82
  COVERAGE_FILE=.coverage
83
skip_install = true
84
commands =
85
    coverage erase
86
    coverage combine
87
    coverage report
88
    coverage html
89
    coverage xml