forked from TooTallNate/ref-array
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
50 lines (44 loc) · 1.49 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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"
- nodejs_version: "4.1"
- nodejs_version: "5"
- nodejs_version: "6"
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}"