forked from node-modules/node-murmurhash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (59 loc) · 2.45 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
51
52
53
54
55
56
57
58
59
60
61
62
63
environment:
node_pre_gyp_qn_accessKeyId:
secure: aS9PiP9UeMGyiI7hDlSDle8WNqfOX7vzSybFmiW29pYPEk+L3pCUUjke6YYDwQUB
node_pre_gyp_qn_secretAccessKey:
secure: 32tbTZ5nzLD3XeP32imF28QLaUiS7rRsuskckvk93YptYeeYm2tv7oxRyfcKqfoR
matrix:
- nodejs_version: 1.2.0
msvs_toolset: 12
- nodejs_version: 1.0.4
msvs_toolset: 12
- nodejs_version: 0.12.0
msvs_toolset: 12
- nodejs_version: 0.11.16
msvs_toolset: 12
- nodejs_version: 0.11.15
msvs_toolset: 12
- nodejs_version: 0.11.13
msvs_toolset: 12
- nodejs_version: 0.10.36
msvs_toolset: 12
platform:
- x64
- x86
os: Visual Studio 2014 CTP4
install:
# add local node to path (since we install it for msvs_toolset == 14)
- SET PATH=%CD%;%PATH%;
# add local node-pre-gyp dir to path
- SET PATH=node_modules\.bin;%PATH%
# use 64 bit python if platform is 64 bit
- if "%platform%" == "x64" set PATH=C:\Python27-x64;%PATH%
- if %platform% == x64 (SET ARCH=x64)
# install node version per visual studio toolset
- powershell Install-Product node $env:nodejs_version $env:platform
- node -v
- npm -v
# https://github.com/mapbox/node-sqlite3/blob/master/appveyor.yml
- SET PATH=C:\Program Files (x86)\MSBuild\%msvs_toolset%.0\bin;%PATH%
- SET PATH=C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\bin;%PATH%
- if %platform% == x64 CALL "C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\vcvarsall.bat" amd64
- if %platform% == x86 CALL "C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\vcvarsall.bat" amd64_x86
# http://cylonjs.com/blog/2014/11/19/creating-multiplatform-precompiled-binaries-for-node-modules/
# Make sure to use to pass --msvs_version=2013 to the npm install command
# otherwise some bindings and libraries might now be available, an error will
- npm install node-gyp-install
- node-gyp-install
- npm install --build-from-source --msvs_version=2013
- npm test
# make commit message env var shorter
- SET CM=%APPVEYOR_REPO_COMMIT_MESSAGE%
- if not "%CM%" == "%CM:[republish binary]=%" npm run unpublish-binary
- if not "%CM%" == "%CM:[republish binary]=%" node-pre-gyp package publish
- if not "%CM%" == "%CM:[republish binary]=%" npm run test-publish-binary
- if not "%CM%" == "%CM:[publish binary]=%" node-pre-gyp package publish
- if not "%CM%" == "%CM:[publish binary]=%" npm run test-publish-binary
- npm run list-binary
build: OFF
test: OFF
deploy: OFF