Move all reports into a common directory
This commit is contained in:
parent
2002a5f61a
commit
987268dcf3
3 changed files with 11 additions and 11 deletions
|
@ -21,7 +21,7 @@ install:
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script: tox
|
script: tox
|
||||||
after_success:
|
after_success:
|
||||||
- codecov --file .tox/cov-*.xml
|
- codecov --file .tox/reports/*/coverage.xml
|
||||||
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter format-coverage --prefix $PWD/.tox/*/lib/*/site-packages --input-type coverage.py .tox/cov-*.xml; fi"
|
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter format-coverage --prefix $PWD/.tox/*/lib/*/site-packages --input-type coverage.py .tox/cov-*.xml; fi"
|
||||||
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter upload-coverage; fi"
|
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter upload-coverage; fi"
|
||||||
notifications:
|
notifications:
|
||||||
|
|
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -48,8 +48,8 @@ pys.each { py ->
|
||||||
if (py.main) {
|
if (py.main) {
|
||||||
archiveArtifacts artifacts: 'dist/*', fingerprint: true
|
archiveArtifacts artifacts: 'dist/*', fingerprint: true
|
||||||
stash includes: 'dist/*.tar.gz', name: 'bin'
|
stash includes: 'dist/*.tar.gz', name: 'bin'
|
||||||
dir('.tox') {
|
dir('.tox/reports') {
|
||||||
stash includes: 'allure-*/**', name: 'allure'
|
stash includes: '*/allure-data/**', name: 'allure-data'
|
||||||
}
|
}
|
||||||
def buildVer = findFiles(glob: 'dist/*.tar.gz')[0].name.replaceFirst(/\.tar\.gz$/, '')
|
def buildVer = findFiles(glob: 'dist/*.tar.gz')[0].name.replaceFirst(/\.tar\.gz$/, '')
|
||||||
currentBuild.description = buildVer
|
currentBuild.description = buildVer
|
||||||
|
@ -57,14 +57,14 @@ pys.each { py ->
|
||||||
publishCoverage calculateDiffForChangeRequests: true,
|
publishCoverage calculateDiffForChangeRequests: true,
|
||||||
sourceFileResolver: sourceFiles('STORE_LAST_BUILD'),
|
sourceFileResolver: sourceFiles('STORE_LAST_BUILD'),
|
||||||
adapters: [
|
adapters: [
|
||||||
coberturaAdapter('.tox/cov-*.xml')
|
coberturaAdapter('.tox/reports/*/coverage.xml')
|
||||||
]
|
]
|
||||||
|
|
||||||
recordIssues sourceCodeEncoding: 'UTF-8',
|
recordIssues sourceCodeEncoding: 'UTF-8',
|
||||||
referenceJobName: 'dosage/master',
|
referenceJobName: 'dosage/master',
|
||||||
tool: flake8(pattern: '.tox/flake8.log', reportEncoding: 'UTF-8')
|
tool: flake8(pattern: '.tox/flake8.log', reportEncoding: 'UTF-8')
|
||||||
}
|
}
|
||||||
junit '.tox/junit-*.xml'
|
junit '.tox/reports/*/junit.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,8 +122,8 @@ def processAllure() {
|
||||||
warnError('allure report failed') {
|
warnError('allure report failed') {
|
||||||
node {
|
node {
|
||||||
deleteDir()
|
deleteDir()
|
||||||
unstash 'allure'
|
unstash 'allure-data'
|
||||||
sh 'mv allure-* allure-data'
|
sh 'mv */allure-data .'
|
||||||
copyArtifacts filter: 'allure-history.zip', optional: true, projectName: JOB_NAME, selector: lastWithArtifacts()
|
copyArtifacts filter: 'allure-history.zip', optional: true, projectName: JOB_NAME, selector: lastWithArtifacts()
|
||||||
if (fileExists('allure-history.zip')) {
|
if (fileExists('allure-history.zip')) {
|
||||||
unzip dir: 'allure-data', quiet: true, zipFile: 'allure-history.zip'
|
unzip dir: 'allure-data', quiet: true, zipFile: 'allure-history.zip'
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -4,14 +4,14 @@ envlist = py36, py37, py38, py39, flake8
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
{envbindir}/py.test --tb=short \
|
{envbindir}/py.test --tb=short \
|
||||||
--junitxml={toxworkdir}/junit-{envname}.xml \
|
--junitxml={toxworkdir}/reports/{envname}/junit.xml \
|
||||||
--alluredir={toxworkdir}/allure-{envname} \
|
--alluredir={toxworkdir}/reports/{envname}/allure-data \
|
||||||
--cov={envsitepackagesdir}/dosagelib \
|
--cov={envsitepackagesdir}/dosagelib \
|
||||||
--cov-branch \
|
--cov-branch \
|
||||||
--cov-config=tox.ini \
|
--cov-config=tox.ini \
|
||||||
--cov-report=term \
|
--cov-report=term \
|
||||||
--cov-report=xml:{toxworkdir}/cov-{envname}.xml \
|
--cov-report=xml:{toxworkdir}/reports/{envname}/coverage.xml \
|
||||||
--cov-report=html:{toxworkdir}/cov-{envname} \
|
--cov-report=html:{toxworkdir}/reports/{envname}/htmlcov \
|
||||||
{posargs}
|
{posargs}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue