Skip to content

Commit

Permalink
Merge pull request #857 from LibraryOfCongress/fix-coverage-xml-reports
Browse files Browse the repository at this point in the history
coverage: workaround for XML reporting bug
  • Loading branch information
acdha committed Mar 20, 2019
2 parents f24f8ba + 6a5947b commit 9e20cb1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
22 changes: 18 additions & 4 deletions .coveragerc
@@ -1,6 +1,20 @@
[run]
branch = true
source =
concordia
importer
exporter
include =
concordia/*
importer/*
exporter/*
omit =
*/migrations/*
*/tests/*
concordia/settings*

[report]
include =
concordia/*
importer/*
exporter/*
omit =
*/migrations/*
*/tests/*
concordia/settings*
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -34,10 +34,12 @@ script:
- mkdir logs
- touch ./logs/concordia-celery.log
- pipenv run ./manage.py collectstatic --no-input
- pipenv run coverage run ./manage.py test concordia importer exporter
# n.b.
- pipenv run coverage run ./manage.py test
- git diff --name-only $TRAVIS_COMMIT_RANGE | xargs pre-commit run --files
- pipenv run safety check
after_success:
- git fetch --unshallow --tags
- pipenv run coverage xml
- sonar-scanner
- coveralls
4 changes: 2 additions & 2 deletions sonar-project.properties
@@ -1,7 +1,7 @@
sonar.exclusions=**/tests/**, node_modules/**, htmlcov/**, static-files/**, concordia/settings_dev*, concordia/settings_test*
sonar.exclusions=**/tests/**, node_modules/**, htmlcov/**, static-files/**, concordia/settings_dev*, concordia/settings_test*, coverage.xml
sonar.sources=.
sonar.projectKey=LibraryOfCongress_concordia
sonar.organization=libraryofcongress
sonar.host.url=https://sonarcloud.io
sonar.python.coverage.reportPaths=coverage.xml
sonar.coverage.exclusions=cloudformation/**, coverage.xml, setup.py, **/static/**, **/templates/**, **/vendor/**
sonar.coverage.exclusions=cloudformation/**, setup.py, **/static/**, **/templates/**, **/vendor/**

0 comments on commit 9e20cb1

Please sign in to comment.