-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.proj
26 lines (17 loc) · 902 Bytes
/
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
<Project>
<Import Project="Directory.Build.props" />
<PropertyGroup>
<Cfg>--configuration Release</Cfg>
<ThisDirAbsolute>$([System.IO.Path]::GetFullPath("$(MSBuildThisFileDirectory)"))</ThisDirAbsolute>
<PrOption Condition =" '$(BUILD_PR)' != '%24(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER)' ">/p:BUILD_PR=$(BUILD_PR) </PrOption>
<PackOptions>/p:BUILD_ID=$(BUILD_ID) $(PrOption) -o $(ThisDirAbsolute)bin/nupkg</PackOptions>
<TestOptions>--logger:trx -- RunConfiguration.TestSessionTimeout=3300000 xunit.diagnosticMessages=true</TestOptions>
</PropertyGroup>
<Target Name="Pack">
<Exec Command="dotnet pack src/Equinox.Templates $(Cfg) $(PackOptions)" />
</Target>
<!-- NOTE The tests unpack the nupkg-->
<Target Name="VSTest" DependsOnTargets="Pack">
<Exec Command="dotnet test tests/Equinox.Templates.Tests $(Cfg) $(TestOptions)" />
</Target>
</Project>