-
Notifications
You must be signed in to change notification settings - Fork 263
/
appveyor.yml
36 lines (31 loc) · 1.15 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
os: Visual Studio 2015
environment:
matrix:
- nodejs_version: 4
- nodejs_version: 6
- nodejs_version: 8
platform:
- x64
- x86
shallow_clone: true
install:
- ps: Install-Product node $env:nodejs_version $env:Platform
- ps: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
- npm config get
# upgrade node-gyp to dodge https://github.com/mapbox/node-pre-gyp/issues/209#issuecomment-307641388
# and allow make node 4.x x86 builds work
- IF "%nodejs_version:~0,1%" EQU "4" npm install [email protected]
- node --version
- npm --version
- node -e "console.log(process.arch);"
- IF /I "%PLATFORM%" == "x64" set PATH=C:\Python27-x64;%PATH%
- IF /I "%PLATFORM%" == "x86" SET PATH=C:\python27;%PATH%
- IF /I "%PLATFORM%" == "x64" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- IF /I "%PLATFORM%" == "x86" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- npm install
# workaround https://github.com/mapbox/node-pre-gyp/issues/300#issuecomment-328179994
- IF "%nodejs_version:~0,1%" GEQ "6" npm install npm@2 -g
- npm test
build: off
test: off
deploy: off