linx-simulator2/node_modules/ref-struct/appveyor.yml

48 lines
1.4 KiB
YAML

# http://www.appveyor.com/docs/appveyor-yml
# Test against these versions of Node.js.
environment:
# Visual Studio Version
MSVS_VERSION: 2013
# Test against these versions of Node.js and io.js
matrix:
# node.js
- nodejs_version: "0.8"
- nodejs_version: "0.10"
- nodejs_version: "0.12"
# io.js
- nodejs_version: "2.5"
- nodejs_version: "3.2"
platform:
- x86
- x64
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node 0.STABLE.latest
- ps: if($env:nodejs_version -eq "0.8") {Install-Product node $env:nodejs_version}
- ps: if($env:nodejs_version -ne "0.8") {Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)}
# Node 0.8 comes with a too obsolete npm
- IF %nodejs_version% == 0.8 (npm install -g npm@1.4.28)
# Install latest NPM only for node.js versions until built in node-gyp adds io.js support
# Update is required for node.js 0.8 because built in npm(node-gyp) does not know VS2013
- IF %nodejs_version% LSS 1 (npm install -g npm@2)
- IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
# Typical npm stuff.
- npm install --msvs_version=%MSVS_VERSION%
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test
# Don't actually build.
build: off
# Set build version format here instead of in the admin panel.
version: "{build}"