Skip to content

Commit 14eaaec

Browse files
committed
SDK-1390: Add generation of coverage report
1 parent 4b51c0b commit 14eaaec

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dist: xenial
44

55
# Only clone the most recent commit.
66
git:
7-
depth: 1
7+
depth: false
88

99
jobs:
1010
allow_failures:
@@ -62,6 +62,7 @@ jobs:
6262
- pip install -r requirements.txt
6363
- pip install -e .[dev]
6464
script:
65-
- pytest --cov=yoti_python_sdk yoti_python_sdk/tests
65+
- pytest --cov=yoti_python_sdk yoti_python_sdk/tests --cov-report=xml:coverage-reports/coverage-new.xml
66+
- sed -i 's+<source>.*</source>+<source>/home/travis/build/getyoti/yoti-python-sdk/yoti_python_sdk</source>+g' coverage-reports/coverage-new.xml
6667
- sonar-scanner
6768
if: type = pull_request OR branch = master

0 commit comments

Comments
 (0)