From 0fe295aa9cbbc2fc424d69c7368e577515800727 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 18 Oct 2015 21:10:45 -0700 Subject: Build NuGet package on AppVeyor --- appveyor.yml | 12 ++++++++++++ scripts/nuget.autopkg | 2 +- scripts/nuget_build.bat | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 289c036..3f09dd9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,17 @@ os: Visual Studio 2015 RC version: "{branch}-{build}" +install: + - ps: (new-object net.webclient).DownloadFile('http://downloads.coapp.org/files/CoApp.Tools.Powershell.msi', 'C:\CoApp.Tools.Powershell.msi') + - ps: Start-Process -FilePath msiexec -ArgumentList /i, 'C:\CoApp.Tools.Powershell.msi', /quiet -Wait + - ps: $env:PSModulePath = $env:PSModulePath + ';C:\Program Files (x86)\Outercurve Foundation\Modules' + - ps: Import-Module CoApp + build_script: + - ps: .\scripts\nuget_build.bat + +test_script: - ps: .\tests\autotest-appveyor.ps1 + +artifacts: + - path: .\scripts\*.nupkg \ No newline at end of file diff --git a/scripts/nuget.autopkg b/scripts/nuget.autopkg index 3843ee9..85fc55f 100644 --- a/scripts/nuget.autopkg +++ b/scripts/nuget.autopkg @@ -1,7 +1,7 @@ nuget { nuspec { id = pugixml; - version: 1.7.0; + version: 1.7.0-appveyor; authors: {Arseny Kapoulkine}; owners: {Arseny Kapoulkine}; diff --git a/scripts/nuget_build.bat b/scripts/nuget_build.bat index 807f89a..ab3c984 100644 --- a/scripts/nuget_build.bat +++ b/scripts/nuget_build.bat @@ -1,4 +1,5 @@ @echo off +cd %~dp0 "%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ -- cgit v1.2.3