Skip to content

Commit 54b72bd

Browse files
committed
appveyor: fix node v0.8, test io.js v2.5 and v3
1 parent edcf9ed commit 54b72bd

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

appveyor.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,35 @@
22

33
# Test against these versions of Node.js.
44
environment:
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

1017
platform:
1118
- x86
1219
- x64
1320

1421
# Install scripts. (runs after repo cloning)
1522
install:
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.
2436
test_script:

0 commit comments

Comments
 (0)