File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Test against these versions of Node.js.
4
4
environment :
5
+ # Visual Studio Version
6
+ MSVS_VERSION : 2013
7
+ # Test against these versions of Node.js and io.js
5
8
matrix :
9
+ # node.js
6
10
- nodejs_version : " 0.8"
7
11
- nodejs_version : " 0.10"
8
12
- nodejs_version : " 0.12"
13
+ # io.js
14
+ - nodejs_version : " 2.5"
15
+ - nodejs_version : " 3.2"
9
16
10
17
platform :
11
18
- x86
12
19
- x64
13
20
14
21
# Install scripts. (runs after repo cloning)
15
22
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)}
17
26
# 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%
20
32
# Typical npm stuff.
21
- - npm install
33
+ - npm install --msvs_version=%MSVS_VERSION%
22
34
23
35
# Post-install test scripts.
24
36
test_script :
You can’t perform that action at this time.
0 commit comments