Skip to content

Commit 9229324

Browse files
authored
Only publish cpuprofile logs for integration tests.
1 parent e2924a7 commit 9229324

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

azure-pipelines/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ steps:
3333
DISPLAY: :99.0
3434
CODE_VERSION: ${{ parameters.testVSCodeVersion }}
3535

36-
- powershell: |
37-
$tempPath = [System.IO.Path]::GetTempPath()
38-
echo "Temp Path: $tempPath"
39-
Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
40-
displayName: 'Copy .cpuprofile files to out/logs'
41-
condition: succeededOrFailed()
36+
- ${{ if contains(parameters.npmCommand, ':integration') }}:
37+
- powershell: |
38+
$tempPath = [System.IO.Path]::GetTempPath()
39+
echo "Temp Path: $tempPath"
40+
Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
41+
displayName: 'Copy .cpuprofile files to out/logs'
42+
condition: succeededOrFailed()
4243
4344
- task: PublishTestResults@2
4445
condition: succeededOrFailed()

0 commit comments

Comments
 (0)