forked from 247Entertainment/E247.Fun
/
Build.recipe
78 lines (58 loc) · 3.12 KB
/
Build.recipe
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
<Project DefaultTargets="Clean;Prepare;Build;Test;Pack;Release" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ArtifactName>E247.Fun</ArtifactName>
<ArtifactSolution>$(ArtifactName)</ArtifactSolution>
<ArtifactCompany>24-7 Entertainment</ArtifactCompany>
<ArtifactProjectUrl>https://github.com/247Entertainment/E247.Fun</ArtifactProjectUrl>
<ArtifactIconUrl>http://hyrtwol.dk/icons/e247.ico</ArtifactIconUrl>
<ArtifactDescription>E247.Fun makes functional and railway-oriented programming easy in C#</ArtifactDescription>
<MajorVersion>2</MajorVersion>
<MinorVersion>0</MinorVersion>
<UnitTestFramework>XUnit</UnitTestFramework>
<UnitTestSearchPath>**\bin\Release\*.UnitTest.dll</UnitTestSearchPath>
<SettingsFile>$(Pantry)\E247.Build.Settings.targets</SettingsFile>
<SettingsFileExists Condition="Exists('$(SettingsFile)')">true</SettingsFileExists>
<ReleaseBranch>origin/master</ReleaseBranch>
<!-- to be able to build as locally the default is set to dev -->
<VCS_BRANCH Condition=" '$(VCS_BRANCH)' == '' ">dev</VCS_BRANCH>
</PropertyGroup>
<!-- <ItemGroup> -->
<!-- <Project Include="E247.Fun"> -->
<!-- <Flavour>NuGet</Flavour> -->
<!-- </Project> -->
<!-- </ItemGroup> -->
<!-- <Import Project="$(SettingsFile)" Condition=" '$(SettingsFileExists)'=='true' "/> -->
<!-- <PropertyGroup Condition=" '$(SettingsFileExists)'=='true' AND '$(TEAMCITY_VERSION)'!='' "> -->
<!-- <InternalNuGetPushUrl>$(NuGetOrgPublishUrl)</InternalNuGetPushUrl> -->
<!-- <InternalNuGetApiKey>$(NuGetOrgApiKey)</InternalNuGetApiKey> -->
<!-- </PropertyGroup> -->
<!-- <Import Project="$(Pantry)\E247.Build.Solution.targets"/> -->
<!-- <PropertyGroup> -->
<!-- <DeployDependsOn Condition=" '$(VCS_BRANCH)' == 'master' ">$(DeployDependsOn);_VerifyNugetFeed</DeployDependsOn> -->
<!-- <DeployDependsOn Condition=" '$(VCS_BRANCH)' != 'master' ">_VerifyNugetFeed</DeployDependsOn> -->
<!-- </PropertyGroup> -->
<!-- <Target Name="_VerifyNugetFeed"> -->
<!-- <Message Text="SettingsFile: '$(SettingsFile)'" Importance="high" /> -->
<!-- <Message Text="SettingsFileExists: '$(SettingsFileExists)'" Importance="high" /> -->
<!-- <Message Text="InternalNuGetPushUrl: '$(InternalNuGetPushUrl)'" Importance="high" /> -->
<!-- </Target> -->
<Import Project="$(Pantry)\E247.Build.Solution.targets"/>
<Target Name="Clean">
<Exec Command="dotnet clean" />
</Target>
<Target Name="Prepare">
<Exec Command="dotnet restore" />
</Target>
<Target Name="Build">
<Exec Command="dotnet build -c Release --no-restore" />
</Target>
<Target Name="Test">
<Exec Command="dotnet test E247.Fun.UnitTest/E247.Fun.UnitTest.csproj --no-restore --no-build -c Release" />
</Target>
<Target Name="Pack">
<Exec Command="dotnet pack --no-build --no-restore -c Release -o ../pck/ -p:PackageVersion=2.0.0" />
</Target>
<Target Name="Release">
<Exec Command="dotnet nuget push -s https://www.nuget.org/api/v2/package -k $(E247FunNugetApiKey) pck/E247.Fun.2.0.0.nupkg" />
</Target>
</Project>