diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..8cb34be --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,17 @@ +version: 5.0.{build} +image: Visual Studio 2017 +cache: +- packages +build_script: +- ps: ./buildAndPack.ps1 +test_script: +- ps: ./test.ps1 +artifacts: +- path: nuget/*.nupkg + name: nuget_packages +deploy: +- provider: GitHub + auth_token: + secure: OVLvwbpNQ/EHiyh7oM3L0QnBNJReDdKmnns1qo5eXDg0LsKzOil914pupoqV1al7 + artifact: nuget_packages + draft: true \ No newline at end of file diff --git a/pack.ps1 b/pack.ps1 index a7eab04..dfc3e7b 100644 --- a/pack.ps1 +++ b/pack.ps1 @@ -2,4 +2,11 @@ $mainFolder = Resolve-Path (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) $paketExe = "$mainFolder\.paket\paket.exe" -& "$paketExe" pack "$mainFolder\nuget" \ No newline at end of file +if (Test-Path env:appveyor_build_version) +{ + & "$paketExe" pack "$mainFolder\nuget" --version $env:appveyor_build_version +} +else +{ + & "$paketExe" pack "$mainFolder\nuget" +} \ No newline at end of file diff --git a/paket.dependencies b/paket.dependencies index 260d416..ac8cffe 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -13,7 +13,6 @@ nuget System.Resources.ResourceManager 4.3.0 group Test source https://nuget.org/api/v2 framework: netcoreapp2.1 - storage: none nuget NUnit >= 3.10 < 4.0 nuget NUnit3TestAdapter >= 3.10 < 4.0 diff --git a/paket.lock b/paket.lock index 175702a..0b2782a 100644 --- a/paket.lock +++ b/paket.lock @@ -49,7 +49,6 @@ NUGET System.Runtime (>= 4.3) - restriction: || (&& (== net472) (< net45)) (== netstandard2.0) GROUP Test -STORAGE: NONE RESTRICTION: == netcoreapp2.1 NUGET remote: https://www.nuget.org/api/v2 diff --git a/test.ps1 b/test.ps1 new file mode 100644 index 0000000..4ed666a --- /dev/null +++ b/test.ps1 @@ -0,0 +1 @@ +& dotnet test \ No newline at end of file