From 2b353738815f758461809191fd130c828b7998fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20K=C3=BCsel?= Date: Sun, 28 Jan 2018 13:07:42 +0100 Subject: [PATCH] adds appveyor config --- appveyor.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..89c0565 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,44 @@ +# http://www.appveyor.com/docs/appveyor-yml + +# Don't actually build +build: off + +# Skip tag builds +skip_tags: true + +# Set build version format +version: "{build}" + +# Set up build environment +environment: + # Test against these versions of Node.js + matrix: + - nodejs_version: "9" + - nodejs_version: "8" + - nodejs_version: "7" + - nodejs_version: "6" + - nodejs_version: "5" + - nodejs_version: "4" + +# Build on both platforms +platform: + - x86 + - x64 + +# Install scripts (runs after repo cloning) +install: + # Get the latest version of $env:nodejs_version + - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform + # Update to latest npm + - npm -g install npm 2>&1>nul + - SET PATH=%APPDATA%\npm;%PATH% + # Output useful info for debugging + - node --version + - npm --version + # Install modules + - npm install + +# Post-install test scripts +test_script: + # Run module tests + - npm test