File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ parameters:
2
2
runIntegrationTests :
3
3
4
4
steps :
5
+ - powershell : |
6
+ Invoke-WebRequest -Uri https://go.microsoft.com/fwlink/?linkid=2026036 -OutFile adksetup.exe
7
+ adksetup.exe /features OptionId.WindowsPerformanceToolkit /ceip off /installpath T:\ADK
8
+
5
9
- task : UsePythonVersion@0
6
10
displayName : Use Python $(python.version)
7
11
inputs :
@@ -11,9 +15,21 @@ steps:
11
15
- bash : pip install --upgrade setuptools tox
12
16
displayName : Install Tox
13
17
18
+ - script : ' "C:\ADK\Windows Performance Toolkit\wpr.exe" -start GeneralProfile.light'
19
+ displayName : Start tracing
20
+
14
21
- script : tox -e py -- -m unit -n 3 --junit-xml=junit/unit-test.xml
15
22
displayName : Tox run unit tests
16
23
24
+ - script : ' "C:\ADK\Windows Performance Toolkit\wpr.exe" -stop T:\wpr-result.etl'
25
+ displayName : Stop tracing
26
+
27
+ - task : PublishBuildArtifacts@1
28
+ displayName : ' Publish trace results'
29
+ inputs :
30
+ pathtoPublish : T:\wpr-result.etl
31
+ artifactName : wpr-result.etl
32
+
17
33
- ${{ if eq(parameters.runIntegrationTests, 'true') }} :
18
34
- powershell : |
19
35
# Fix Git SSL errors
You can’t perform that action at this time.
0 commit comments