File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -96,26 +96,25 @@ commands:
96
96
python -m venv venv
97
97
. venv/bin/activate
98
98
pip install --upgrade pip coverage
99
+ coverage combine ./coverage_results
100
+ coverage xml -i
99
101
100
102
PR_NUMBER=$(echo ${CIRCLE_PULL_REQUEST} | sed 's/.*\///')
101
- SONAR_SCANNER_VERSION=7.2.0.5079
102
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
103
103
SONAR_TOKEN=${SONAR_TOKEN}
104
104
105
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip
106
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
107
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
105
+ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pysonar-scanner
108
106
export SONAR_SCANNER_OPTS="-server"
107
+
109
108
if [[ -n "${PR_NUMBER}" ]]; then
110
- sonar -scanner \
109
+ pysonar -scanner \
111
110
-Dsonar.organization=instana \
112
111
-Dsonar.projectKey=instana_python-sensor \
113
112
-Dsonar.sources=. \
114
113
-Dsonar.host.url="${SONARQUBE_URL}" \
115
114
-Dsonar.pullrequest.key="${PR_NUMBER}" \
116
115
-Dsonar.pullrequest.branch="${CIRCLE_BRANCH}"
117
116
else
118
- sonar -scanner \
117
+ pysonar -scanner \
119
118
-Dsonar.organization=instana \
120
119
-Dsonar.projectKey=instana_python-sensor \
121
120
-Dsonar.sources=. \
You can’t perform that action at this time.
0 commit comments