-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev.cfg
63 lines (53 loc) · 1.6 KB
/
dev.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
[buildout]
parts =
test
coverage
coverage-report
pylint
all
develop =
.
../plone.testing
../sphinx.testing
[test]
recipe = zc.recipe.testrunner
eggs = mrs.developer [test]
defaults = ['--auto-color', '--auto-progress']
[coverage]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
mkdir ${buildout:directory}/coverage -p
./bin/test --coverage ${buildout:directory}/coverage -v --auto-progress "$@"
output = ${buildout:directory}/bin/coverage
mode = 755
[coverage-report]
recipe = zc.recipe.egg
eggs = z3c.coverage
scripts = coverage=coverage-report
[pylint]
recipe = zc.recipe.egg
eggs = pylint
entry-points = pylint=pylint.lint:Run
arguments = sys.argv[1:]+[
'--output-format=html',
'--import-graph=${buildout:directory}/docs/_build/pylint_mrsd.dot',
'--ext-import-graph=${buildout:directory}/docs/_build/pylint_mrsd_external.dot',
'--int-import-graph=${buildout:directory}/docs/_build/pylint_mrsd_internal.dot',
'--init-import=y',
'${buildout:directory}/src/mrs/developer']
[all]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
mkdir ${buildout:directory}/docs/_build -p
rm -R {buildout:directory}/docs/_build/*
${buildout:directory}/bin/coverage
mkdir ${buildout:directory}/docs/_build/html -p
${buildout:directory}/bin/pylint > ${buildout:directory}/docs/_build/html/pylint.html
cd ${buildout:directory}/docs/_build
make html && make man
cd ${buildout:directory}
open ${buildout:directory}/docs/_build/html/index.html
output = ${buildout:directory}/bin/all
mode = 755