forked from collective/collective.solr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.cfg
130 lines (108 loc) · 3.07 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
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
[buildout]
index = https://pypi.org/simple
extensions = mr.developer
parts +=
instance
solr
omelette
test
test-robot
coverage
test-coverage
code-analysis
releaser
sphinxbuilder
check-readme
develop = .
auto-checkout =
[sources]
plone.restapi = git https://github.com/plone/plone.restapi.git branch=master
kitconcept.recipe.solr = git https://github.com/kitconcept/kitconcept.recipe.solr.git [email protected]:kitconcept/kitconcept.recipe.solr.git branch=master
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 8080
eggs =
Plone
Pillow
plone.app.debugtoolbar
collective.solr [test]
plone.restapi
environment-vars =
zope_i18n_compile_mo_files true
[solr]
recipe = kitconcept.recipe.solr
src = http://archive.apache.org/dist/lucene/solr/7.7.2/solr-7.7.2.tgz
solr-config = config
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
[test]
recipe = zc.recipe.testrunner
eggs = ${instance:eggs}
defaults = ['-s', 'collective.solr', '--auto-color', '--auto-progress']
environment = environment
[test-robot]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
export ROBOTSUITE_PREFIX=ONLYROBOT && ${buildout:directory}/bin/test -t ONLYROBOT --all
# bin/coverage run --source=${buildout:directory}/src/collective/solr bin/test
output = ${buildout:directory}/bin/test-robot
mode = 755
environment = environment
[environment]
ROBOT_SELENIUM2LIBRARY_RUN_ON_FAILURE = Capture page screenshot and log source
[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}/src/collective/solr 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 90%.
output = ${buildout:directory}/bin/test-coverage
mode = 755
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/src
flake8-max-line-length = 200
flake8-max-complexity = 50
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg,skins,src/kitconcept.recipe.solr
flake8-ignore =
# copied from https://github.com/psf/black/blob/master/.flake8
# E203: https://github.com/psf/black#slices
E203
E266
E501
W503
# legacy
E731 # E731 do not assign a lambda expression, use a def
E722 # do not use bare except
return-status-codes = True
flake8-extensions =
# flake8-coding
# flake8-debugger
# flake8-print
[releaser]
recipe = zc.recipe.egg
eggs = zest.releaser
[sphinxbuilder]
recipe = collective.recipe.sphinxbuilder
source = ${buildout:directory}/docs
build = ${buildout:directory}/docs
[check-readme]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
python ${buildout:directory}/setup.py check -r -s
output = ${buildout:directory}/bin/check-readme
mode = 755
[versions]
setuptools =
zc.buildout =
collective.solr =