From 381e8f98e6c2842e915b3b0dfb36398c090982bc Mon Sep 17 00:00:00 2001 From: Zach Bjornson Date: Thu, 19 Nov 2015 12:39:58 -0800 Subject: [PATCH] Add appveyor testing for windows. --- appveyor.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..e48b19486 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,35 @@ +version: 0.0.{build} +environment: + matrix: + - nodejs_version: "0.8" + - nodejs_version: "0.10" + - nodejs_version: "0.12" + - nodejs_version: "1.8" + - nodejs_version: "2.5.0" + - nodejs_version: "3.3.0" + - nodejs_version: "4" + - nodejs_version: "5" +os: + - Visual Studio 2015 + - Visual Studio 2013 +install: + - ps: Install-Product node $env:nodejs_version x64 + # Sets Windows 7.1 SDK env vars. Required for node 0.8, 0.10, 1.8 builds: + - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64' + #- if "%nodejs_version%" == "0.8" (call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64) + #- if "%nodejs_version%" == "0.10" (call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64) + # Upgrade npm for node 0.8: + - if "%nodejs_version%" == "0.8" (npm install -g npm@1.4.28) + - if "%nodejs_version%" == "0.8" (set "PATH=%APPDATA%\npm;%PATH%") + - node -v + - npm -v + - npm install -g node-gyp + # Put GTK in C:/ + - curl -fLsS -o 'gtk.zip' 'http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip' + - 7z x gtk.zip -oGTK > nul + - mv GTK/ C:/ + - if "%os%" == "Visual Studio 2015" (set GYP_MSVS_VERSION=2015) + - npm install +build: off +test_script: +- cmd: npm test