onnxruntime/tools/ci_build/github/azure-pipelines/templates/windows-code-coverage-steps.yml
shahasad 97dfd5ee21
Add code coverage (#1192)
* added the runcoverage powershell script

* updated the run coverage script. added installation to the windows CI for trying

* exclude other parts of win ci

* fix in the download script

* fix in the download script

* fix in the download script

* fix in the download script

* fix in the download script

* fix in the download script

* fix in the download script

* fix in the download script

* fix in the download script

* added the runtestcoverage script to the pipeline

* some typo fix

* formatting

* re-commenting previously commented block

* cleaned up the powershell script

* fix path in pipeline

* fix path in pipeline

* fixed model path

* some fixes

* excluded long running tests

* add the publish job

* uncomment other tasks

* fixed excluded tests

* some format correction

* stopped running the test debug

* try placing the tes-all at the beginning

* try running the failing test only

* edit run_coverage

* some fix

* skip onnx_model_test

* Added memory size log in powershell script

* try running the onnxruntime_test_all.exe separately from codecov

* enable error reporting, and double memory size in powershell

* corrected the set-item

* remove memory resize, since we are already at max 2 GB

* fixed the tvm.dll issue

* added back the onnx tests in codecov. added back the regular test run

* cleanup

* remove * from the the module path

* add junction target resolution for modules dir

* remove junction-resolution

* reduced tests

* added target extraction for the junction paths in build machine

* added the appropriate change in win ci pipeline to call the updated ps script

* fix typo

* added back all the tests that were disabled

* try fixing the source root

* cleanup and enable all tests

* increase timeout for windows CPU CI due to codecoverage

* templatized the code coverage steps. Conitnue on error with any codecoverage step

* change quote marks
2019-06-09 22:30:41 -07:00

20 lines
779 B
YAML

# sets variables $(TestDataUrl) and $(TestDataChecksum)
parameters:
OpenCppCoverageExe: '$(Build.BinariesDirectory)\OpenCppCoverage\OpenCppCoverage.exe'
steps:
- task: PowerShell@2
displayName: 'Run Test Coverage'
inputs:
filePath: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\run_OpenCppCoverage.ps1'
arguments: '-OpenCppCoverageExe:"${{parameters.OpenCppCoverageExe}}" -SourceRoot:"$(Build.SourcesDirectory)" -BuildRoot:"$(Build.BinariesDirectory)" -LocalBuild:$false'
continueOnError: true
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(Build.BinariesDirectory)/**/cobertura.xml'
reportDirectory: '$(Build.BinariesDirectory)/**/OpenCppCoverageResults'
continueOnError: true