]> granicus.if.org Git - php/commitdiff
Upload coverage data to codecov.io
authorPaul Crovella <paul.crovella@gmail.com>
Thu, 3 Dec 2020 03:14:09 +0000 (19:14 -0800)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 3 Dec 2020 11:04:50 +0000 (12:04 +0100)
Closes GH-6486.

azure/coverage_job.yml

index 01bde10281c5993da2041c767f59d7a477e19659..184ebcfafa77960d5403aa45d356ae31a6465490 100644 (file)
@@ -32,10 +32,13 @@ jobs:
         runTestsParameters: >-
           ${{ parameters.runTestsParameters }}
           -d zend_extension=opcache.so
+    - script: bash <(curl -s https://codecov.io/bash)
+      displayName: 'Upload ${{ parameters.configurationName }} Test Coverage to Codecov.io'
+      condition: or(succeeded(), failed())
     - script: |
         make gcovr-xml
         mv gcovr.xml coverage.xml
-      displayName: 'Generate ${{ parameters.configurationName }} Test Coverage'
+      displayName: 'Generate ${{ parameters.configurationName }} Test Coverage Cobertura XML Report'
       condition: or(succeeded(), failed())
     - task: PublishCodeCoverageResults@1
       inputs: