Merge pull request #9233 from adiaaida/disableDeleteNextCardTable
[platform/upstream/coreclr.git] / tests / helixpublish.proj
1 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2   
3   <PropertyGroup>
4     <__BuildType>$(ConfigurationGroup)</__BuildType>
5   </PropertyGroup>
6
7   <Import Project="..\dir.props" />
8   <Import Project="$(ToolsDir)CloudTest.targets" Condition="Exists('$(ToolsDir)CloudTest.targets')" />
9
10   <!-- Define test payload & Correlation (Core_Root) payload -->
11   <ItemGroup>
12     <TestList Include="$(TestWorkingDir)\archive\tests\*" ></TestList>
13     <CoreRootUri Include="$(TestWorkingDir)\archive\Core_Root*\*.zip" ></CoreRootUri>
14     <DummyPackages Include="$(TestWorkingDir)\archive\packages\*" ></DummyPackages>
15     <ForUpload Include="@(TestList)" ></ForUpload>
16     <ForUpload Include="@(CoreRootUri)" ></ForUpload>
17     <SupplementalPayload Include="@(DummyPackages)" >
18       <RelativeBlobPath>$(Platform)$(ConfigurationGroup)/Packages.zip</RelativeBlobPath>
19     </SupplementalPayload>
20   </ItemGroup>
21
22   <!-- Define name & location of test JSON blob -->
23   <PropertyGroup>
24     <PayloadTestListFilename>Tests.$(ConfigurationGroup).json</PayloadTestListFilename>
25     <PayloadTestListFile>$(TestWorkingDir)$(PayloadTestListFilename)</PayloadTestListFile>
26     <SkipArchive>true</SkipArchive>
27   </PropertyGroup>
28
29   <Target Name="CreateTestListJson"
30           DependsOnTargets="CreateAzureStorage">
31
32     <!-- Define Correlation Payload as a property -->
33     <PropertyGroup>
34       <CoreRootUris>$(DropUri)$(Platform)$(ConfigurationGroup)/Tests/$([System.String]::Copy('%(RecursiveDir)').Replace('\', '/'))%(CoreRootUri.Filename)%(CoreRootUri.Extension)$(DropUriReadOnlyToken)</CoreRootUris>
35       <CorrelationPayloadProperty>$(CorrelationPayloadUris);$(CoreRootUris)</CorrelationPayloadProperty>
36     </PropertyGroup>
37
38     <ItemGroup>
39       <TestList>
40         <Command Condition="'$(TargetsWindows)' == 'true'">$(HelixPythonPath) $(RunnerScript) --script %HELIX_WORKITEM_PAYLOAD%\runtests.cmd</Command>
41         <Command Condition="'$(TargetsWindows)' != 'true'">chmod +x $HELIX_WORKITEM_PAYLOAD/runtests.sh &amp;&amp; $(HelixPythonPath) $(RunnerScript) --script $HELIX_WORKITEM_PAYLOAD/runtests.sh</Command>
42         <CorrelationPayloadUris>[$(CorrelationPayloadProperty)]</CorrelationPayloadUris>
43         <PayloadUri>$(DropUri)$(Platform)$(ConfigurationGroup)/Tests/$([System.String]::Copy('%(RecursiveDir)').Replace('\', '/'))%(Filename)%(Extension)$(DropUriReadOnlyToken)</PayloadUri>
44         <WorkItemId>%(Filename)</WorkItemId>
45         <TimeoutInSeconds>$(TimeoutInSeconds)</TimeoutInSeconds>
46       </TestList>
47     </ItemGroup>
48     <WriteItemsToJson JsonFileName="$(PayloadTestListFile)" Items="@(TestList)" />
49     <!-- add test lists to the list of items for upload -->
50     <ItemGroup>
51       <ForUpload Include="$(PayloadTestListFile)">
52         <RelativeBlobPath>$(PayloadTestListFilename)</RelativeBlobPath>
53       </ForUpload>
54     </ItemGroup>
55     <!-- for completion event -->
56     <ItemGroup>
57       <TestListFile Include="$(PayloadTestListFile)">
58         <BuildCompleteJson>$(TestWorkingDir)$(OSPlatformConfig)/FuncBuildComplete.json</BuildCompleteJson>
59         <OfficialBuildJson>$(TestWorkingDir)$(OSPlatformConfig)/FuncOfficialBuild.json</OfficialBuildJson>
60         <HelixJobUploadCompletePath>$(TestWorkingDir)$(OSPlatformConfig)/helixjobuploadcomplete.sem</HelixJobUploadCompletePath>
61       </TestListFile>
62     </ItemGroup>
63   </Target>
64
65   <Target Name="Build" />
66
67 </Project>