-
Notifications
You must be signed in to change notification settings - Fork 6
/
base.cfg
66 lines (55 loc) · 1.38 KB
/
base.cfg
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
[buildout]
parts =
instance
test
code-analysis
coverage
test-coverage
releaser
omelette
develop = .
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 8080
eggs =
Plone
Pillow
Products.Collage [test]
ipdb
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/Products/Collage
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
flake8-max-complexity = 16
flake8-extensions =
flake8-blind-except
flake8-debugger
flake8-coding
flake8-ignore = F401,C101
[test]
recipe = zc.recipe.testrunner
eggs =
Products.Collage[test]
defaults = ['-s', 'Products.Collage', '--auto-color', '--auto-progress']
[coverage]
recipe = zc.recipe.egg
eggs = coverage
[test-coverage]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
${buildout:directory}/bin/coverage run --source=${buildout:directory}/Products.Collage bin/test
${buildout:directory}/bin/coverage html
${buildout:directory}/bin/coverage report -m --fail-under=85
# Fail (exit status 1) if coverage returns exit status 2 (this happens
# when test coverage is below 100%.
output = ${buildout:directory}/bin/test-coverage
mode = 755
[releaser]
recipe = zc.recipe.egg:scripts
eggs =
zest.releaser[recommended]
[omelette]
recipe = collective.recipe.omelette
eggs = ${test:eggs}