-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.cfg
83 lines (60 loc) · 1.54 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[buildout]
show-picked-versions = true
extensions =
mr.developer
parts =
test
code-analysis
coverage
test-coverage
createcoverage
releaser
pylint
omelette
develop = .
[code-analysis]
recipe = plone.recipe.codeanalysis[recommended]
directory = ${buildout:directory}/src/sc
return-status-codes = True
flake8-ignore = E501,T000,Q000,C812,C815,C816,E203,W503
[omelette]
recipe = collective.recipe.omelette
eggs = ${test:eggs}
[test]
recipe = zc.recipe.testrunner
eggs = ${buildout:eggs}
initialization =
os.environ['TZ'] = 'UTC'
defaults = ['-s', 'sc.recipe.staticresources', '--auto-color', '--auto-progress']
[coverage]
recipe = zc.recipe.egg
eggs = coverage
[test-coverage]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
export TZ=UTC
${buildout:directory}/bin/coverage run bin/test $*
${buildout:directory}/bin/coverage html
${buildout:directory}/bin/coverage report -m --fail-under=90
# 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
[createcoverage]
recipe = zc.recipe.egg
eggs = createcoverage
[releaser]
recipe = zc.recipe.egg
eggs = zest.releaser
[pylint]
recipe = zc.recipe.egg
eggs = pylint < 2.0
[test]
recipe = zc.recipe.testrunner
defaults = ['--auto-color', '--auto-progress']
eggs = sc.recipe.staticresources [test]
[versions]
# Don't use a released version of sc.recipe.staticresources
sc.recipe.staticresources =
lazy-object-proxy = 1.6.0