aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-15 14:53:59 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-15 14:53:59 -0800
commit6f5c80df15707d367e888eabce7cbeb66ba8f5db (patch)
tree11da413e214792947332f408a170e7a13c41cc7e
parent573e08a643bac0af91df90582638f1f765dab429 (diff)
downloadnng-6f5c80df15707d367e888eabce7cbeb66ba8f5db.tar.gz
nng-6f5c80df15707d367e888eabce7cbeb66ba8f5db.tar.bz2
nng-6f5c80df15707d367e888eabce7cbeb66ba8f5db.zip
Initial AppVeyor support.
-rw-r--r--.appveyor.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644
index 00000000..92ce4e8f
--- /dev/null
+++ b/.appveyor.yml
@@ -0,0 +1,53 @@
+version: 0.0.{build}
+environment:
+ global:
+ ASCIIDOCTOR_VER: 1.5.4
+ CFLAGS: /MP
+ matrix:
+ # array of all environments used to test builds
+ - GENERATOR: NMake Makefiles
+ CFG: Debug
+ VS_VERSION: 12.0
+ - GENERATOR: Visual Studio 14 2015
+ VS_VERSION: 14.0
+ CFG: Debug
+ - GENERATOR: Visual Studio 12 2013
+ VS_VERSION: 12.0
+ CFG: Debug
+ - GENERATOR: Visual Studio 14 2015 Win64
+ CFG: Debug
+ VS_VERSION: 14.0
+ - GENERATOR: Visual Studio 12 2013 Win64
+ CFG: Debug
+ VS_VERSION: 12.0
+
+cache:
+ - '%USERPROFILE%\asciidoctor-%ASCIIDOCTOR_VER%.gem -> .appveyor.yml'
+
+install:
+ # Gem fetching can sometimes be excruciatingly slow due to the rubygems database,
+ # so we have to manually download our target gem.
+ - ps: |
+ $asciidoctor = "$($env:USERPROFILE)\asciidoctor-$($env:ASCIIDOCTOR_VER).gem"
+ if (-not (Test-Path $asciidoctor)) {
+ $url = "https://rubygems.org/downloads/asciidoctor-$($env:ASCIIDOCTOR_VER).gem"
+ Write-Output "Downloading asciidoctor $env:ASCIIDOCTOR_VER from $url"
+ (New-Object Net.WebClient).DownloadFile($url, $asciidoctor)
+ }
+ gem install --no-document --local $asciidoctor
+
+# This section is a workaround for: https://github.com/nanomsg/nanomsg/issues/683
+before_build:
+ - del "C:\Program Files (x86)\MSBuild\%VS_VERSION%\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
+
+build:
+ parallel: true
+build_script:
+ - cmd: IF NOT %VS_VERSION% == NONE call "C:/Program Files (x86)/Microsoft Visual Studio %VS_VERSION%/Common7/Tools/vsvars32.bat"
+ - cmd: cmake --version
+ - cmd: md build
+ - cmd: cd build
+ - cmd: cmake -G "%GENERATOR%" ..
+ - cmd: cmake --build .
+test_script:
+ - cmd: ctest --output-on-failure -C "%CFG%"