Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e64e063

Browse files
committed
[skip travis] try AppVeyor
1 parent 0d91276 commit e64e063

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"dependencies": {
4040
"nan": "~2.2.0",
41-
"node-pre-gyp": "~0.6.25"
41+
"node-pre-gyp": "https://github.com/mapbox/node-pre-gyp/tarball/v0.7.x"
4242
},
4343
"bundledDependencies": [
4444
"node-pre-gyp"
@@ -49,6 +49,7 @@
4949
},
5050
"scripts": {
5151
"prepublish":"npm ls",
52+
"preinstall": "npm install node-pre-gyp",
5253
"install": "node-pre-gyp install --fallback-to-build",
5354
"pretest": "node test/support/createdb.js",
5455
"test": "mocha -R spec --timeout 480000"

scripts/build-appveyor.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66

77
SET PATH=%CD%;%PATH%
88
SET msvs_version=2013
9-
IF "%msvs_toolset"=="14" SET msvs_version=2015
9+
IF "%msvs_toolset%"=="14" SET msvs_version=2015
1010

1111
ECHO APPVEYOR^: %APPVEYOR%
1212
ECHO nodejs_version^: %nodejs_version%
@@ -59,10 +59,17 @@ ECHO deleting node ...
5959
SET NODE_EXE_PRG=%ProgramFiles%\nodejs\node.exe
6060
IF EXIST "%NODE_EXE_PRG%" ECHO found %NODE_EXE_PRG%, deleting... && DEL /F "%NODE_EXE_PRG%"
6161
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
62+
IF EXIST "%ProgramFiles%\nodejs" ECHO copy custom node.exe to %ProgramFiles%\nodejs\ && COPY node.exe "%ProgramFiles%\nodejs\"
63+
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
64+
6265
SET NODE_EXE_PRG=%ProgramFiles(x86)%\nodejs\node.exe
6366
IF EXIST "%NODE_EXE_PRG%" ECHO found %NODE_EXE_PRG%, deleting... && DEL /F "%NODE_EXE_PRG%"
6467
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
68+
IF EXIST "%ProgramFiles(x86)%\nodejs" ECHO copy custom node.exe to %ProgramFiles(x86)%\nodejs\ && COPY node.exe "%ProgramFiles(x86)%\nodejs\"
69+
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
6570

71+
ECHO delete node.exe in current directory && DEL node.exe
72+
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
6673

6774
:NODE_INSTALLED
6875

@@ -72,7 +79,7 @@ ECHO available npm^:
7279
call where npm
7380

7481
ECHO node^: && call node -v
75-
call node -e "console.log(process.argv,process.execPath)"
82+
call node -e "console.log(' - arch:',process.arch,'\n - argv:',process.argv,'\n - execPath:',process.execPath)"
7683
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
7784

7885
ECHO npm^: && CALL npm -v

scripts/build-local.bat

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,22 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
1313
IF EXIST node_modules ECHO deleting node_modules && RD /Q /S node_modules
1414
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
1515

16+
GOTO VS2015
17+
1618
ECHO ============================
1719
ECHO VS2013
1820
ECHO ============================
19-
SET nodejs_version=0.10.36
20-
SET platform=x64
21+
SET nodejs_version=4.4.2
22+
SET platform=x86
2123
SET msvs_toolset=12
2224
SET TOOLSET_ARGS=
2325

2426
CALL scripts\build-appveyor.bat
2527
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
2628

29+
GOTO DONE
2730

28-
31+
:VS2015
2932

3033
IF EXIST lib\binding ECHO deleting lib/binding && RD /Q /S lib\binding
3134
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
@@ -35,10 +38,13 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
3538
ECHO ============================
3639
ECHO VS2015
3740
ECHO ============================
38-
SET nodejs_version=0.12.7
39-
SET platform=x86
41+
SET nodejs_version=4.4.1
42+
ECHO SET nodejs_version^: %nodejs_version%
43+
SET platform=x64
44+
ECHO SET platform^: %platform%
4045
SET msvs_toolset=14
41-
SET TOOLSET_ARGS=--dist-url=https://s3.amazonaws.com/mapbox/node-cpp11 --toolset=v140
46+
ECHO SET msvs_toolset^: %msvs_toolset%
47+
::SET TOOLSET_ARGS=--dist-url=https://s3.amazonaws.com/mapbox/node-cpp11 --toolset=v140
4248

4349
CALL scripts\build-appveyor.bat
4450
IF %ERRORLEVEL% NEQ 0 GOTO ERROR

0 commit comments

Comments
 (0)