forked from dotnet/roslyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildAndTest.proj
79 lines (66 loc) · 3.6 KB
/
BuildAndTest.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="BuildAndTest"
ToolsVersion="12.0">
<UsingTask
AssemblyFile="packages\xunit.runners.2.0.0-alpha-build2576\tools\xunit.runner.msbuild.dll"
TaskName="Xunit.Runner.MSBuild.xunit" />
<Target Name="RestorePackages">
<Exec Command=""$(MSBuildThisFileDirectory)\Src\.nuget\Nuget.exe" install xunit.runners -pre -version 2.0.0-alpha-build2576 -outputdirectory packages"/>
<Exec Command=""$(MSBuildThisFileDirectory)\Src\.nuget\Nuget.exe" restore "$(MSBuildThisFileDirectory)\Src\Roslyn.sln"" />
</Target>
<Target Name="Build"
DependsOnTargets="RestorePackages">
<MSBuild BuildInParallel="true"
Projects="$(MSBuildThisFileDirectory)\Src\Roslyn.sln"
Properties="RestorePackages=false"
Targets="Build"/>
</Target>
<Target Name="Clean">
<MSBuild BuildInParallel="true"
Projects="$(MSBuildThisFileDirectory)\Src\Roslyn.sln"
Properties="RestorePackages=false"
Targets="Clean"/>
</Target>
<Target Name="Rebuild">
<MSBuild BuildInParallel="true"
Projects="$(MSBuildThisFileDirectory)\Src\Roslyn.sln"
Properties="RestorePackages=false"
Targets="Rebuild"/>
</Target>
<Target Name="Test">
<ItemGroup Condition="'$(CIBuild)' == ''">
<TestAssemblies Include="Binaries\$(Configuration)\**\*.UnitTests*.dll" />
</ItemGroup>
<ItemGroup Condition="'$(CIBuild)' == 'true'">
<!--
These assemblies currently don't run correctly in Jenkins. Disabling while
we investigate the failures. This is being tracked by issue #79
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.CompilerServer.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.NativeClient.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.CSharp.Symbol.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.VisualBasic.Emit.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.VisualBasic.Symbol.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.VisualBasic.Syntax.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.CSharp.Emit.UnitTests.dll" />
-->
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.CSharp.CommandLine.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.CSharp.Semantic.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.CSharp.Syntax.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.VisualBasic.CommandLine.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Compilers.VisualBasic.Semantic.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Diagnostics.Analyzers.FxCop.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Diagnostics.Analyzers.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Services.CSharp.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Services.UnitTests.dll" />
<TestAssemblies Include="Binaries\Debug\Roslyn.Services.VisualBasic.UnitTests.dll" />
</ItemGroup>
<xunit
Assemblies="@(TestAssemblies)"
Html="UnitTestResults.html"
ShadowCopy="false" />
</Target>
<Target Name="BuildAndTest"
DependsOnTargets="Build;Test" />
</Project>