Skip to content

Commit f8b4508

Browse files
committed
SDK-1390: Update travis and sonar-project.properties to use Sonarcloud.io
1 parent b497b3d commit f8b4508

2 files changed

Lines changed: 25 additions & 8 deletions

File tree

.travis.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ git:
77
depth: 1
88

99
jobs:
10+
allow_failures:
11+
- python: "3.8-dev"
1012
include:
1113
- &test
1214
stage: Test
@@ -49,7 +51,20 @@ jobs:
4951
if: type = pull_request OR branch = master
5052
after_success:
5153
- coveralls
52-
53-
matrix:
54-
allow_failures:
55-
- python: "3.8-dev"
54+
- stage: Analyze
55+
name: Sonarcloud
56+
dist: trusty
57+
python: "3.7"
58+
addons:
59+
sonarcloud:
60+
organization: "getyoti"
61+
token:
62+
secure: "rqiy5kLHuXPRZjWCg/DOt3x81nLvDoVLjtkzrzC7EPYSUiJQ+B/f+dMOLphhapnZ4wEQT1diM7R/XhEhEPRsXxCJuHJC5wERTiURw6jCjIMlfVM1vzq2W45nPKdzEjMDFi1XtaB0rQOP3eB6xAYQ84hJ17i7+fty9tTIembBOIZmJsA69QXODOUPJfUy/TlcS+GHml584xY4VEc2w8+O0sq7NOQoYsScHrwxyR6uQCXaeSgGFz6C6b3URqXe6559P2jttJc4+8JwG/GYRxU/8Gvtoh4DZcRivcWDfjoBirz8Cz95Pl224FxGeyitKuNWPFWQb3o2hgVkR2bOKOasHUvZuT6eOk6i+YnvltZZJimSZ5fX6bvR4t35YXYqXdEDSkOzZmHolGW9bj9LSYJphY+1ODVWjRycRV96nU2x42ueeTG9ZCW9ZnlWGgplo8X6KJDmhs5k6++Y7Q40DuYrmwYWxZXyBOkrMrUHCV7rpreRov+2NoOUuU8Dq4uBdIKn8truxPLAERFWrGIO5ti+TXPQ/ttGL+d47QhDBXhGKa0qUVRFq1W6CY1AgNCtxfG842eQzSNvV5am/4zZVWEwRbuIMDaceNagpLIDy4iEeEdwZXT2B8xZVt2rePWd7Qxk7UDD+s9/RYFLyOSDNcmmmguLej9gyTlBMrLFCvLcsnk="
63+
install:
64+
- pip install -r requirements.txt
65+
- pip install -e .[dev]
66+
script:
67+
- pytest --cov=yoti_python_sdk yoti_python_sdk/tests
68+
if: type = pull_request OR brnch = master
69+
after_success:
70+
- sonar-scanner

sonar-project.properties

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
sonar.projectKey = yoti-web-sdk:python
2-
sonar.projectName = python-sdk
1+
sonar.host.url = https://sonarcloud.io
2+
sonar.organization = getyoti
3+
sonar.projectKey = getyoti:python
4+
sonar.projectName = Python SDK
35
sonar.projectVersion = 2.10.0
4-
sonar.exclusions=yoti_python_sdk/tests/**,examples/**
6+
sonar.exclusions = yoti_python_sdk/tests/**,examples/**
57

6-
sonar.python.pylint.reportPath=coverage.out
8+
sonar.python.pylint.reportPath = coverage.out
79
sonar.verbose = true

0 commit comments

Comments
 (0)