Skip to content

Commit

Permalink
[ci/azure] handle test results
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Oct 14, 2019
1 parent 185d567 commit 4a064da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
10 changes: 1 addition & 9 deletions devtools/azure-pipelines-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,4 @@ jobs:
displayName: Fix Conda permissions

- template: conda-setup+build.yml

#- template: test-results.yml
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '**/junit.xml'
searchFolder: '$(HOME)' # Optional
failTaskOnFailedTests: true # Optional
publishRunAttachments: true # Optional
- template: test-results.yml
1 change: 1 addition & 0 deletions devtools/azure-pipelines-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ jobs:
displayName: Fix Conda permissions

- template: conda-setup+build.yml
- template: test-results.yml
5 changes: 3 additions & 2 deletions devtools/azure-pipelines-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ jobs:
matrix:
Python37:
CONDA_PY: '3.7'

steps:
- task: BatchScript@1
inputs:
filename: "$(CONDA)\\Scripts\\activate.bat"
filename: "$(CONDA)\\Scripts\\activate.bat"
modifyEnvironment: True
displayName: Add conda to PATH
- template: conda-setup+build.yml
- template: test-results.yml
5 changes: 3 additions & 2 deletions devtools/test-results.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
steps:

- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '**/junit.xml'
testResultsFiles: '**/junit.xml'
searchFolder: '$(HOME)' # Optional
failTaskOnFailedTests: true # Optional
publishRunAttachments: true # Optional

0 comments on commit 4a064da

Please sign in to comment.