Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Commit 9f4393f

Browse files
author
Jérémie Bertrand
committed
Add release builds and artifacts
1 parent c0f8c29 commit 9f4393f

8 files changed

Lines changed: 117 additions & 4 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,6 @@ UpgradeLog*.htm
181181

182182
# Microsoft Fakes
183183
FakesAssemblies/
184+
185+
# Nuget package build
186+
PackagingAssets/nuget/Lib/Net40/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata>
4+
<id>semanticreleasenotesParser</id>
5+
<version>$version$</version>
6+
<title>SemanticReleaseNotesParser</title>
7+
<authors>laedit</authors>
8+
<owners>laedit</owners>
9+
<projectUrl>https://github.com/laedit/SemanticReleaseNotesParser</projectUrl>
10+
<iconUrl>https://cdn.rawgit.com/laedit/SemanticReleaseNotesParser/master/icon.png</iconUrl>
11+
<licenseUrl>https://github.com/laedit/SemanticReleaseNotesParser/blob/master/LICENSE</licenseUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<description>Parser for Semantic Release Notes (http://www.semanticreleasenotes.org/)</description>
14+
<tags>Semantic, Release, Notes, Parser, hmtl, markdown, liquid</tags>
15+
<releaseNotes>https://github.com/laedit/SemanticReleaseNotesParser/releases</releaseNotes>
16+
</metadata>
17+
</package>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
$packageName = 'SemanticReleaseNotesParser'
2+
$url = 'https://github.com/laedit/SemanticReleaseNotesParser/releases/download/{{tag}}/SemanticReleaseNotesParser.{{version}}.zip'
3+
4+
Install-ChocolateyZipPackage "$packageName" "$url" "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata>
4+
<id>SemanticReleaseNotesParser.Core</id>
5+
<version>$version$</version>
6+
<title>SemanticReleaseNotesParser.Core</title>
7+
<authors>laedit</authors>
8+
<owners>laedit</owners>
9+
<projectUrl>https://github.com/laedit/SemanticReleaseNotesParser</projectUrl>
10+
<iconUrl>https://cdn.rawgit.com/laedit/SemanticReleaseNotesParser/master/icon.png</iconUrl>
11+
<licenseUrl>https://github.com/laedit/SemanticReleaseNotesParser/blob/master/LICENSE</licenseUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<description>Parser for Semantic Release Notes (http://www.semanticreleasenotes.org/)</description>
14+
<tags>Semantic, Release, Notes, Parser, hmtl, markdown, liquid</tags>
15+
<releaseNotes>https://github.com/laedit/SemanticReleaseNotesParser/releases</releaseNotes>
16+
</metadata>
17+
</package>

SemanticReleaseNotesParser.Core/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
[assembly: AssemblyConfiguration("")]
1010
[assembly: AssemblyCompany("")]
1111
[assembly: AssemblyProduct("SemanticReleaseNotesParser.Core")]
12-
[assembly: AssemblyCopyright("Copyright © 2015")]
12+
[assembly: AssemblyCopyright("Copyright © Laedit 2015")]
1313
[assembly: AssemblyTrademark("")]
14-
[assembly: AssemblyCulture("")]
14+
[assembly: AssemblyCulture("en-US")]
1515

1616
// Setting ComVisible to false makes the types in this assembly not visible
1717
// to COM components. If you need to access a type in this assembly from

SemanticReleaseNotesParser.Core/SemanticReleaseNotesParser.Core.csproj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<AssemblyName>SemanticReleaseNotesParser.Core</AssemblyName>
1212
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<NuGetPackageImportStamp>e79e6be6</NuGetPackageImportStamp>
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<DebugSymbols>true</DebugSymbols>
@@ -66,11 +67,33 @@
6667
<EmbeddedResource Include="Resources\GroupByCategories.liquid" />
6768
</ItemGroup>
6869
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
70+
<Import Project="..\packages\PepitaPackage.1.21.4\build\PepitaPackage.targets" Condition="Exists('..\packages\PepitaPackage.1.21.4\build\PepitaPackage.targets')" />
71+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
72+
<PropertyGroup>
73+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
74+
</PropertyGroup>
75+
<Error Condition="!Exists('..\packages\PepitaPackage.1.21.4\build\PepitaPackage.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\PepitaPackage.1.21.4\build\PepitaPackage.targets'))" />
76+
</Target>
6977
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
7078
Other similar extension points exist, see Microsoft.Common.targets.
7179
<Target Name="BeforeBuild">
7280
</Target>
7381
<Target Name="AfterBuild">
7482
</Target>
7583
-->
84+
85+
<Target Name="CleanNuget">
86+
<ItemGroup>
87+
<RefFilesToDelete Include="$(SolutionDir)PackagingAssets\nuget\Lib\*.*" />
88+
</ItemGroup>
89+
<Delete Files="@(RefFilesToDelete)" />
90+
</Target>
91+
<Target Name="AfterBuild" DependsOnTargets="CleanNuget">
92+
<!-- NugetBuild -->
93+
<MakeDir Directories="$(SolutionDir)PackagingAssets\nuget" />
94+
<Copy SourceFiles="$(OutputPath)SemanticReleaseNotesParser.Core.dll" DestinationFolder="$(SolutionDir)PackagingAssets\nuget\Lib\Net40" />
95+
<Copy SourceFiles="$(OutputPath)SemanticReleaseNotesParser.Core.pdb" DestinationFolder="$(SolutionDir)PackagingAssets\nuget\Lib\Net40" />
96+
<Copy SourceFiles="$(OutputPath)SemanticReleaseNotesParser.Core.xml" DestinationFolder="$(SolutionDir)PackagingAssets\nuget\Lib\Net40" />
97+
<PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(SolutionDir)PackagingAssets\nuget" MetadataAssembly="$(OutputPath)SemanticReleaseNotesParser.Core.dll" Version="$(GitVersion_NuGetVersion)" />
98+
</Target>
7699
</Project>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="CommonMark.NET" version="0.8.3" targetFramework="net40" />
4-
<package id="DotLiquid" version="1.8.0" targetFramework="net40" />
3+
<package id="CommonMark.NET" version="0.8.3" targetFramework="net40" />
4+
<package id="DotLiquid" version="1.8.0" targetFramework="net40" />
5+
<package id="PepitaPackage" version="1.21.4" targetFramework="net40" developmentDependency="true" />
56
</packages>

appveyor.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ after_build:
3232
- inspectcode /o="inspectcodereport.xml" "SemanticReleaseNotesParser.sln"
3333
#- NVika buildserver "inspectcodereport.xml" --debug --includesource
3434
- ilrepack /internalize /parallel /wildcards /out:SemanticReleaseNotesParser.exe SemanticReleaseNotesParser/bin/Release/SemanticReleaseNotesParser.exe SemanticReleaseNotesParser/bin/Release/*.dll
35+
- SemanticReleaseNotesParser.exe -g Categories
36+
# build chocolatey package
37+
- ps: (gc PackagingAssets\chocolatey\tools\chocolateyInstall.ps1).replace('{{version}}',$version).replace('{{tag}}',$tag)|sc PackagingAssets\chocolatey\tools\chocolateyInstall.ps1
38+
- choco pack PackagingAssets\chocolatey\SemanticReleaseNotesParser.nuspec -OutputDirectory artifacts -Version $version
39+
# build nuget package -> made in SemanticReleaseNotesParser.Core.csproj
40+
# zip for github package
41+
- 7z a SemanticReleaseNotesParser.$version.zip $env:appveyor_build_folder\SemanticReleaseNotesParser.exe
42+
- 7z a SemanticReleaseNotesParser.$version.zip ReleaseNotes.html
3543

3644
test_script:
3745
- OpenCover.Console.exe -register:user -filter:"+[SemanticReleaseNotesParser.Core]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -target:"xunit.console.clr4.exe" -targetargs:"""SemanticReleaseNotesParser.Core.Tests\bin\Release\SemanticReleaseNotesParser.Core.Tests.dll"" /noshadow /appveyor" -output:coverage.xml -returntargetcode
@@ -40,9 +48,49 @@ test_script:
4048

4149
artifacts:
4250
- path: inspectcodereport.xml
51+
4352
- path: coverage.xml
53+
4454
- path: SemanticReleaseNotesParser\bin\Release\SemanticReleaseNotesParser.exe.CodeAnalysisLog.xml
4555
name: SemanticReleaseNotesParser.exe.CodeAnalysisLog.xml
56+
4657
- path: SemanticReleaseNotesParser.Core\bin\Release\SemanticReleaseNotesParser.Core.dll.CodeAnalysisLog.xml
4758
name: SemanticReleaseNotesParser.Core.dll.CodeAnalysisLog.xml
59+
4860
- path: SemanticReleaseNotesParser.exe
61+
62+
- path: ReleaseNotes.html
63+
64+
- path: PackagingAssets\chocolatey\SemanticReleaseNotesParser.*.nupkg
65+
name: SemanticReleaseNotesParser.nupkg
66+
67+
- path: PackagingAssets\nuget\SemanticReleaseNotesParser.Core.*.nupkg
68+
name: SemanticReleaseNotesParser.Core.nupkg
69+
70+
- path: SemanticReleaseNotesParser.*.zip
71+
name: SemanticReleaseNotesParser.zip
72+
73+
deploy:
74+
- provider: GitHub
75+
auth_token:
76+
secure: WaNF2IUzat+PQQqquLoaN43QIpnUsrYgSOGN3P5Tpy+A+ANOWQqvWE0eFA+XwmmX
77+
artifact: SemanticReleaseNotesParser.zip
78+
description: $(releaseDescription)
79+
on:
80+
appveyor_repo_tag: true
81+
82+
- provider: NuGet
83+
server: https://chocolatey.org/
84+
api_key:
85+
secure: 2GBJF71EQfU+kIL5NHVM4wYoCRcFf/gM/voNIgud8vDWUE+uA1ye/hRWjJPQWA5w
86+
skip_symbols: true
87+
artifact: SemanticReleaseNotesParser.nupkg
88+
on:
89+
appveyor_repo_tag: true
90+
91+
- provider: NuGet
92+
api_key:
93+
secure: NmM24h0TPsfINvy/1Qr4iJkmRjVztuY5umCJ6mzpxSjvuKl48AXjGEcgow+iJwL8
94+
artifact: SemanticReleaseNotesParser.Core.nupkg
95+
on:
96+
appveyor_repo_tag: true

0 commit comments

Comments
 (0)