File tree 5 files changed +26
-2
lines changed
5 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pip-log.txt
20
20
# Unit test / coverage reports
21
21
.coverage
22
22
.tox
23
+ coverage.xml
23
24
24
25
.DS_Store
25
26
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ python:
10
10
- ' 3.9'
11
11
services :
12
12
- docker
13
+ jobs :
14
+ include :
15
+ - language : python
16
+ python : ' 3.9'
17
+ after_success :
18
+ - sonar-scanner
13
19
install :
14
20
- pip install virtualenv --upgrade
15
21
- make install
@@ -19,6 +25,7 @@ script:
19
25
- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
20
26
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin;
21
27
fi
28
+ - make cover
22
29
deploy :
23
30
- provider : script
24
31
script : make docker-build && make docker-push
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ test: analysis
24
24
25
25
cover :
26
26
. venv/bin/activate; \
27
- find tests -type d | xargs nosetests --with-coverage --cover-inclusive --cover-erase --cover-package=twilio
27
+ find tests -type d | xargs nosetests --with-coverage --cover-inclusive --cover-erase --cover-package=twilio; \
28
+ coverage xml --omit 'twilio/rest/*' -o coverage.xml
28
29
29
30
docs-install :
30
31
. venv/bin/activate; pip install -r tests/requirements.txt
Original file line number Diff line number Diff line change 4
4
six
5
5
requests >= 2.0.0
6
6
PyJWT == 1.7.1
7
- twine
7
+ twine
Original file line number Diff line number Diff line change
1
+ sonar.projectKey =twilio_twilio-python
2
+ sonar.projectName =twilio-python
3
+ sonar.organization =twilio
4
+
5
+ sonar.sources =twilio/
6
+ # Exclude any auto-generated source code
7
+ sonar.exclusions =twilio/rest/**/*
8
+ sonar.tests =tests/
9
+ # Exclude any auto-generated integration tests
10
+ sonar.test.exclusions =tests/integration/**/test_*.py
11
+
12
+ # For Code Coverage analysis
13
+ sonar.python.coverage.reportPaths =coverage.xml
14
+ # Exclude auto-generated code from coverage analysis
15
+ sonar.coverage.exclusions =twilio/rest/**/*
You can’t perform that action at this time.
0 commit comments