-
Notifications
You must be signed in to change notification settings - Fork 11
/
buildout.cfg
54 lines (45 loc) · 1.41 KB
/
buildout.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
[buildout]
extends =
https://raw.github.com/collective/buildout.plonetest/master/test-4.3.x.cfg
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg
https://raw.githubusercontent.com/plonegovbr/portal.buildout/master/buildout.d/versions.cfg
package-name = brasil.gov.barra
package-extras = [test]
eggs +=
iw.debug
parts +=
omelette
pylint
rebuild_i18n-sh
update-js
[code-analysis]
recipe = plone.recipe.codeanalysis[recommended]
directory = ${buildout:directory}/src/brasil/gov/barra
clean-lines = True
flake8-ignore = E501,T000
multiprocessing = True
pre-commit-hook = True
return-status-codes = True
[instance]
zcml += iw.debug
[omelette]
recipe = collective.recipe.omelette
eggs = ${test:eggs}
[pylint]
recipe = zc.recipe.egg
eggs = pylint < 2.0
[update-js]
# XXX: update JS code if run locally
recipe = plone.recipe.command
url = http://barra.brasil.gov.br/barra_2.0.js
output = ${buildout:directory}/src/brasil/gov/barra/static/barra.js
command = curl ${:url} -o ${:output}
update-command = ${:command}
[update-js:'CI' in os.environ]
command = echo "JS code is not updated when running in CI"
[versions]
# Como no extends de versões do release do IDG, logo acima, eu pino
# esse pacote, preciso "despiná-lo" aqui para que ele não seja
# baixado de novo: o fato dele estar no src não impede o download
# dele de novo como um egg se ele estiver pinado no extends.
brasil.gov.barra =