-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.proj
29 lines (21 loc) · 1.09 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
<Project>
<Import Project="Directory.Build.props" />
<PropertyGroup>
<Cfg>--configuration Release</Cfg>
<PrOption Condition =" '$(BUILD_PR)' != '%24(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER)' ">/p:BUILD_PR=$(BUILD_PR) </PrOption>
<PackOptions>/p:BUILD_ID=$(BUILD_ID) $(PrOption) -o $(MSBuildThisFileDirectory)bin</PackOptions>
<TestOptions>--logger:trx</TestOptions>
</PropertyGroup>
<Target Name="Pack">
<Exec Command="dotnet pack src/FsCodec $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/FsCodec.Box $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/FsCodec.NewtonsoftJson $(Cfg) $(PackOptions)" />
<Exec Command="dotnet pack src/FsCodec.SystemTextJson $(Cfg) $(PackOptions)" />
</Target>
<Target Name="VSTest">
<Exec Command="dotnet test tests/FsCodec.Tests $(Cfg) $(TestOptions)" />
<Exec Command="dotnet test tests/FsCodec.NewtonsoftJson.Tests $(Cfg) $(TestOptions)" />
<Exec Command="dotnet test tests/FsCodec.SystemTextJson.Tests $(Cfg) $(TestOptions)" />
</Target>
<Target Name="Build" DependsOnTargets="VSTest;Pack" />
</Project>