diff options
author | 2019-06-22 16:59:52 -0700 | |
---|---|---|
committer | 2019-06-22 16:59:52 -0700 | |
commit | da32ab9460d3919d4207be25f3dffa3cc1125da6 (patch) | |
tree | 2f8a2df11fbfeb8702b2eaec8da91f0dd6418d0f | |
parent | Add CI steps for running & publishing tests (diff) |
Fix syntax errors in azure-pipelines.yml
* Add succeededOrFailed condition to code coverage publish task
* Rename test publish task for unit tests
-rw-r--r-- | azure-pipelines.yml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index de6827a..5c3a799 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,18 +27,18 @@ jobs: condition: succeededOrFailed() displayName: 'Publish Lint Results' inputs: - testResultsFiles: 'test-lint.xml' + testResultsFiles: '**/test-lint.xml' testRunTitle: 'Lint Results' - script: coverage run -m xmlrunner displayName: 'Run Unit Tests' - task: PublishTestResults@2 - condition: succeededOrFailed() - displayName: 'Publish Test Results' - inputs: - testResultsFiles: '**/TEST-*.xml' - testRunTitle: 'Lint Results' + condition: succeededOrFailed() + displayName: 'Publish Test Results' + inputs: + testResultsFiles: '**/TEST-*.xml' + testRunTitle: 'Test Results' - script: | coverage xml @@ -47,6 +47,7 @@ jobs: - task: PublishCodeCoverageResults@1 displayName: 'Publish Coverage Results' + condition: succeededOrFailed() inputs: codeCoverageTool: Cobertura summaryFileLocation: '**/coverage.xml' |