-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuildout.cfg
68 lines (60 loc) · 1.76 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[buildout]
extends =
https://raw.github.com/collective/buildout.plonetest/master/test-5.x.cfg
extensions =
mr.developer
package-source = plonesocial
package-name = plonesocial.network
package-extras = [test]
parts +=
code-analysis
flake8
jenkins-test
coverage
auto-checkout =
plonesocial.core
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/plonesocial/network
deprecated-aliases = True
utf8-header = True
clean-lines = True
prefer-single-quotes = True
pep3101 = False
imports = True
debug-statements = True
[sources]
plonesocial.core = git https://github.com/cosent/plonesocial.core.git
[flake8]
recipe = zc.recipe.egg
eggs = flake8
${instance:eggs}
entry-points =
flake8=flake8.run:main
[test]
recipe = collective.xmltestreport
defaults = ['--auto-color', '--auto-progress', '--xml', '-v', '-s', 'plonesocial.network']
[jenkins-test]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
# Remove old results
echo "Erase old coverage results."
bin/coverage erase
# Collect test coverage results for all packages
echo "Run test coverage analysis for all packages."
bin/coverage run -p --source=${buildout:package-source} bin/test $@ || exit 1
echo "Create test coverage report."
# Combine all package analysis
bin/coverage combine
# Generates a "coverage.xml" file that Jenkins can read and process from the
# ".coverage" file that the coverage report created.
bin/coverage xml -i -o ${buildout:directory}/parts/test/coverage.xml
echo "Test coverage report finished."
output = ${buildout:directory}/bin/jenkins-test
mode = 755
[coverage]
recipe = zc.recipe.egg
eggs = coverage
[sources]
plonesocial.core = git https://github.com/cosent/plonesocial.core.git