1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <!-- run before PreCloudBuild so it can consume the output -->
5 <Target Name="PrepareForCloudBuild"
6 BeforeTargets="PreCloudBuild"
7 DependsOnTargets="CreatePerfJson" />
10 <PerfResultsContainer>perf-jobs-result-jsons</PerfResultsContainer>
11 <PerfRunnerJsonFileName>xunitrunner-perf.json</PerfRunnerJsonFileName>
12 <!-- place the JSON file in the same directory as the runner script -->
13 <PerfRunnerJsonFile>$(SupplementalPayloadDir)RunnerScripts/xunitrunner-perf/$(PerfRunnerJsonFileName)</PerfRunnerJsonFile>
15 <PropertyGroup Condition="'$(UseLegacyXunitPerfRunner)'=='true' AND '$(TargetsWindows)' == 'true'">
16 <RunnerScript>%HELIX_CORRELATION_PAYLOAD%\RunnerScripts\xunitrunner-perf\xunitrunner-perf.py</RunnerScript>
18 <PropertyGroup Condition="'$(UseLegacyXunitPerfRunner)'=='true' AND '$(TargetsWindows)' != 'true'">
19 <RunnerScript>$HELIX_CORRELATION_PAYLOAD/RunnerScripts/xunitrunner-perf/xunitrunner-perf.py</RunnerScript>
21 <!-- creates a JSON file to be uploaded as supplemental payload -->
22 <Target Name="CreatePerfJson">
24 AccountKey="$(CloudResultsAccessToken)"
25 AccountName="$(CloudResultsAccountName)"
26 ContainerName="$(PerfResultsContainer)"
27 ReadOnlyTokenDaysValid="30"
28 WriteOnlyTokenDaysValid="1">
29 <Output TaskParameter="StorageUri" PropertyName="RootURI" />
30 <Output TaskParameter="ReadOnlyToken" PropertyName="ReadOnlyToken" />
31 <Output TaskParameter="WriteOnlyToken" PropertyName="WriteOnlyToken" />
32 </CreateAzureContainer>
34 <PerfRunnerJson Include="dummy">
35 <RootURI>$(RootURI)</RootURI>
36 <ReadToken>$(ReadOnlyToken)</ReadToken>
37 <WriteToken>$(WriteOnlyToken)</WriteToken>
38 <Creator>$(Creator)</Creator>
39 <BuildMoniker>$(BuildMoniker)</BuildMoniker>
40 <TestProduct>$(TestProduct)</TestProduct>
41 <TargetQueue>$(TargetQueue)</TargetQueue>
42 <Branch>$(Branch)</Branch>
45 <WriteItemsToJson JsonFileName="$(PerfRunnerJsonFile)" Items="@(PerfRunnerJson)" />