0001-jenkins-publish-consolidated-junit-file-38296.patch
Jenkinsfile | ||
---|---|---|
4 | 4 |
agent any |
5 | 5 |
options { disableConcurrentBuilds() } |
6 | 6 |
stages { |
7 |
stage('Unit Tests (Python 2)') {
|
|
7 |
stage('Unit Tests') { |
|
8 | 8 |
steps { |
9 |
sh 'tox -r -e py2-pylint-coverage'
|
|
9 |
sh 'tox -rv'
|
|
10 | 10 |
} |
11 | 11 |
post { |
12 | 12 |
always { |
... | ... | |
16 | 16 |
utils.publish_coverage_native('index.html') |
17 | 17 |
utils.publish_pylint('pylint.out') |
18 | 18 |
} |
19 |
junit '*_results.xml'
|
|
19 |
mergeJunitResults()
|
|
20 | 20 |
} |
21 | 21 |
} |
22 | 22 |
} |
23 |
stage('Unit Tests (Python 3)') { |
|
24 |
steps { |
|
25 |
sh 'tox -r -e py3' |
|
26 |
} |
|
27 |
} |
|
28 | 23 |
stage('Packaging') { |
29 | 24 |
steps { |
30 | 25 |
script { |
tox.ini | ||
---|---|---|
12 | 12 |
LC_ALL=C |
13 | 13 |
LC_TIME=C |
14 | 14 |
LANG=C |
15 |
coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v
|
|
15 |
coverage: COVERAGE=--cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v |
|
16 | 16 |
passenv = |
17 | 17 |
USER |
18 | 18 |
deps = |
... | ... | |
39 | 39 |
pylint<1.8 |
40 | 40 |
py3: Quixote>=3.0 |
41 | 41 |
commands = |
42 |
py.test -v {env:COVERAGE:} {posargs:tests/} |
|
42 |
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
|
|
43 | 43 |
pylint: ./pylint.sh wcs/ |
44 |
- |