summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-18 21:10:45 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-23 11:11:49 -0700
commit0fe295aa9cbbc2fc424d69c7368e577515800727 (patch)
tree41baf5af8d84aa48bbd0f47fba95a7632f0b2ffa
parenta3a9d53860ff3a71b700b7ed135c1722394bf2f9 (diff)
Build NuGet package on AppVeyor
-rw-r--r--appveyor.yml12
-rw-r--r--scripts/nuget.autopkg2
-rw-r--r--scripts/nuget_build.bat1
3 files changed, 14 insertions, 1 deletions
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 && ^