diff --git a/.gitignore b/.gitignore index 0696013..de33e35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,34 +1,3 @@ -################# -## Eclipse -################# - -*.pydevproject -.project -.metadata -bin/ -tmp/ -*.tmp -*.bak -*.swp -*~.nib -local.properties -.classpath -.settings/ -.loadpath - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# CDT-specific -.cproject - -# PDT-specific -.buildpath - - ################# ## Visual Studio ################# @@ -114,7 +83,9 @@ _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML - +# Files generated by packaging for NuGet +*.nupkg +*.compiled.nuspec ############ ## Windows @@ -126,41 +97,11 @@ Thumbs.db # Folder config file Desktop.ini - -############# -## Python -############# - -*.py[co] - -# Packages -*.egg -*.egg-info -dist -build -eggs -parts -bin -var -sdist -develop-eggs -.installed.cfg - -# Installer logs -pip-log.txt - -# Unit test / coverage reports -.coverage -.tox - -#Translations -*.mo - -#Mr Developer -.mr.developer.cfg - # Mac crap .DS_Store # ignore html files in the root, all are generated by VS or subl /*.html + +# ReportGenerator and Syro dump stuff in this folder +/tmp \ No newline at end of file diff --git a/.nuget/IF.Lastfm.nuspec b/.nuget/IF.Lastfm.nuspec new file mode 100644 index 0000000..4255642 --- /dev/null +++ b/.nuget/IF.Lastfm.nuspec @@ -0,0 +1,22 @@ + + + + IF.Lastfm + $version + Rikki Tooley (@rikkilt) + https://github.com/inflatablefriends/lastfm/blob/master/LICENCE.md + https://github.com/inflatablefriends/lastfm + false + Simple Last.fm SDK for modern .NET platforms + Copyright 2014 Inflatable Friends + lastfm last.fm inflatable friends sdk api + + + + + + + + + + \ No newline at end of file diff --git a/.nuget/pack.ps1 b/.nuget/pack.ps1 new file mode 100644 index 0000000..b5ebabd --- /dev/null +++ b/.nuget/pack.ps1 @@ -0,0 +1,12 @@ +$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..' +$version = [System.Reflection.Assembly]::LoadFile("$root\src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll").GetName().Version +$versionStr = $version.ToString() + +Write-Host "Setting .nuspec version tag to $versionStr" + +$content = (Get-Content $root\.nuget\IF.Lastfm.nuspec) +$content = $content -replace '\$version',$versionStr + +$content | Out-File $root\.nuget\IF.Lastfm.compiled.nuspec + +& $root\.nuget\NuGet.exe pack $root\.nuget\IF.Lastfm.compiled.nuspec \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..6c0950c --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,72 @@ +- + branches: + only: + - master + + version: 0.2.0.{build}-prerelease + + assembly_info: + patch: true + file: AssemblyInfo.* + assembly_version: "{version}" + assembly_file_version: "{version}" + assembly_informational_version: "{version}" + + configuration: Release + + before_build: + - ps: nuget restore IF.Lastfm.sln + + build: + project: IF.Lastfm.sln + + after_test: + - ps: .nuget\pack.ps1 + + artifacts: + - path: src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll + name: IF.Lastfm.Core.dll + - path: '**\*.nupkg' + + nuget: + project_feed: true + +- + branches: + only: + - release + + version: 0.1.2.{build} + + assembly_info: + patch: true + file: AssemblyInfo.* + assembly_version: "{version}" + assembly_file_version: "{version}" + assembly_informational_version: "{version}" + + configuration: Release + + before_build: + - ps: nuget restore IF.Lastfm.sln + + build: + project: IF.Lastfm.sln + + after_test: + - ps: .nuget\pack.ps1 + + artifacts: + - path: src\IF.Lastfm.Core\bin\Release\IF.Lastfm.Core.dll + name: IF.Lastfm.Core.dll + - path: '**\*.nupkg' + + deploy: + provider: NuGet + api_key: + secure: b4Q8KLmOfeQHZNGbTf4OYud3pvi3aR4rKE35dcLHYBTBaQwc9QeoIkDoG13Jpbxs + artifact: /.*\.nupkg/ + + nuget: + account_feed: true + project_feed: true