forked from ploneintranet/ploneintranet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins.cfg
45 lines (41 loc) · 1.18 KB
/
jenkins.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
[buildout]
extends =
base.cfg
parts +=
jenkins-test
[jenkins-test]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
set -e
source bin/activate
echo "Current settings for LC_CTYPE, LC_ALL, LANG:"
echo $LC_CTYPE
echo $LC_ALL
echo $LANG
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
echo "Locale variables were set to:"
echo $LC_CTYPE
echo $LC_ALL
echo $LANG
# 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 $@ || 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."
deactivate
output = ${buildout:directory}/bin/jenkins-test
mode = 755
[coverage]
recipe = zc.recipe.egg
eggs = coverage