-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_ci.cfg
60 lines (54 loc) · 1.73 KB
/
local_ci.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
# This is a test-buildout for gitlab-ci or jenkins
# To test a deployment locally change the variable vardir
[buildout]
extends =
local_develop.cfg
parts +=
# Choose one!
# ${buildout:zeo-ha-parts}
${buildout:zeo-single-parts}
# ${buildout:varnish-parts}
# Modify templates/supervisor.conf as needed for production
# All programs there are commented out
# ${buildout:supervisor-parts}
# ${buildout:cron-parts}
logrotate
precompiler
test
i18ndude
jenkins-podiff
coverage
jenkins-test
vardir = ${buildout:directory}/var
logdir = ${buildout:vardir}/log
backupdir = ${buildout:vardir}/backup
[jenkins-podiff]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/jenkinspodiff.in
output = ${buildout:bin-directory}/podiff_jenkins
mode = 755
[test]
recipe = collective.xmltestreport
defaults = ['--auto-color', '--auto-progress', '--xml', '--ignore_dir=components', '--ignore_dir=node_modules', '-v']
[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=src bin/test --all || 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