-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.proj
34 lines (26 loc) · 1.78 KB
/
build.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
<Project ToolsVersion="15.0">
<Import Project="Directory.Build.props" />
<Target Name="Restore">
<Exec Command="dotnet paket restore" ConsoleToMSBuild="true" />
</Target>
<Target Name="Build" DependsOnTargets="Restore">
<Exec Command='dotnet build src/Falanx.Tool -c Release' />
</Target>
<Target Name="Pack" DependsOnTargets="Restore">
<RemoveDir Directories="$(NupkgsDir)" />
<Exec Command='dotnet pack src/Falanx.Proto.Codec.Json -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
<Exec Command='dotnet pack src/Falanx.Proto.Codec.Binary -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
<Exec Command='dotnet pack src/Falanx.Machinery -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
<Exec Command='dotnet pack src/Falanx.Sdk -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
<Exec Command='dotnet pack src/Falanx.Tool -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
<Exec Command='dotnet pack src/Falanx.Templates -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
<Exec Command='dotnet mergenupkg --source "$(NupkgsDir)/Falanx.Sdk.$(Version).nupkg" --other "$(NupkgsDir)/Falanx.Tool.$(Version).nupkg" --tools --only-files' />
</Target>
<Target Name="Test">
<Exec Command='dotnet build test/Falanx.Tests -c Release' />
<Exec Command='dotnet run -c Release -- --fail-on-focused-tests --summary' WorkingDirectory="$(RepoRootDir)/test/Falanx.Tests" IgnoreStandardErrorWarningFormat="true" />
<Exec Command='dotnet build test/Falanx.IntegrationTests' />
<Exec Command='dotnet run -- "$(Version)" --fail-on-focused-tests --summary' WorkingDirectory="$(RepoRootDir)/test/Falanx.IntegrationTests" IgnoreStandardErrorWarningFormat="true" />
</Target>
<Target Name="VSTest" DependsOnTargets="Test" />
</Project>