File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 22
33# Test against these versions of Node.js.
44environment :
5+ # Visual Studio Version
6+ MSVS_VERSION : 2013
7+ # Test against these versions of Node.js and io.js
58 matrix :
9+ # node.js
610 - nodejs_version : " 0.8"
711 - nodejs_version : " 0.10"
812 - nodejs_version : " 0.12"
13+ # io.js
14+ - nodejs_version : " 2.5"
15+ - nodejs_version : " 3.2"
916
1017platform :
1118 - x86
1219 - x64
1320
1421# Install scripts. (runs after repo cloning)
1522install :
16- - ps : Install-Product node $env:nodejs_version $env:platform
23+ # Get the latest stable version of Node 0.STABLE.latest
24+ - ps : if($env:nodejs_version -eq "0.8") {Install-Product node $env:nodejs_version}
25+ - ps : if($env:nodejs_version -ne "0.8") {Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)}
1726 # Node 0.8 comes with a too obsolete npm
18- - set PATH=%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%APPDATA%\npm;%PATH%
19- -
IF "%nodejs_version%" == "0.8" npm -g install [email protected] 27+ -
IF %nodejs_version% == 0.8 (npm install -g [email protected] ) 28+ # Install latest NPM only for node.js versions until built in node-gyp adds io.js support
29+ # Update is required for node.js 0.8 because built in npm(node-gyp) does not know VS2013
30+ - IF %nodejs_version% LSS 1 (npm install -g npm@2)
31+ - IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
2032 # Typical npm stuff.
21- - npm install
33+ - npm install --msvs_version=%MSVS_VERSION%
2234
2335# Post-install test scripts.
2436test_script :
You can’t perform that action at this time.
0 commit comments