@@ -14,22 +14,6 @@ global_job_config:
1414 - checkout
1515 - mkdir artifacts
1616blocks :
17- # - name: Test
18- # dependencies: []
19- # run:
20- # # don't run the tests on non-functional changes...
21- # when: "change_in('/', {exclude: ['.github/']})"
22- # task:
23- # jobs:
24- # - name: Test
25- # commands:
26- # - sem-version python 3.9
27- # - pip install tox
28- # - tox -e cover
29- # - mkdir test-output
30- # - cp test-report.xml test-output
31- # - test-results publish test-output
32- # - artifact push workflow coverage.xml
3317 - name : " Wheels: OSX x64 - Python 3.6-3.12"
3418 run :
3519 when : " tag =~ '.*'"
@@ -192,7 +176,7 @@ blocks:
192176 task :
193177 agent :
194178 machine :
195- type : s1-prod-ubuntu20-04-amd64-2
179+ type : s1-prod-ubuntu20-04-amd64-3
196180 env_vars :
197181 - name : OS_NAME
198182 value : linux
@@ -217,6 +201,18 @@ blocks:
217201 - chmod u+r+x tools/source-package-verification.sh
218202 - export TEST_CONSUMER_GROUP_PROTOCOL=consumer
219203 - tools/source-package-verification.sh
204+ - name : Build, Test, and Report coverage
205+ commands :
206+ - sem-version python 3.9
207+ # use a virtualenv
208+ - python3 -m venv _venv && source _venv/bin/activate
209+ - chmod u+r+x tools/source-package-verification.sh
210+ - export RUN_COVERAGE=true
211+ - tools/source-package-verification.sh
212+ - mkdir test-output
213+ - cp test-report.xml test-output
214+ - test-results publish test-output
215+ - artifact push workflow coverage.xml
220216 - name : " Source package verification with Python 3 (Linux arm64)"
221217 dependencies : []
222218 task :
@@ -302,15 +298,15 @@ blocks:
302298 - artifact push project artifacts/confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz --destination confluent-kafka-python-wheels-${SEMAPHORE_GIT_TAG_NAME}-${SEMAPHORE_WORKFLOW_ID}.tgz
303299 - echo Thank you
304300
305- # after_pipeline:
306- # task:
307- # agent:
308- # machine:
309- # type: s1-prod-ubuntu20-04-amd64-1
310- # jobs:
311- # - name: SonarQube
312- # commands:
313- # - checkout
314- # - sem-version java 11
315- # - artifact pull workflow coverage.xml
316- # - emit-sonarqube-data --run_only_sonar_scan
301+ after_pipeline :
302+ task :
303+ agent :
304+ machine :
305+ type : s1-prod-ubuntu20-04-amd64-1
306+ jobs :
307+ - name : SonarQube
308+ commands :
309+ - checkout
310+ - sem-version java 11
311+ - artifact pull workflow coverage.xml
312+ - emit-sonarqube-data --run_only_sonar_scan
0 commit comments