forked from kelektiv/node.bcrypt.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add node-pre-gyp support for prebuilt binaries
- Loading branch information
Showing
4 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
environment: | ||
matrix: | ||
- nodejs_version: "0.10" | ||
platform: x64 | ||
- nodejs_version: "0.10" | ||
platform: x86 | ||
- nodejs_version: "0.12" | ||
platform: x64 | ||
- nodejs_version: "0.12" | ||
platform: x86 | ||
- nodejs_version: "4" | ||
platform: x64 | ||
- nodejs_version: "4" | ||
platform: x86 | ||
- nodejs_version: "5" | ||
platform: x64 | ||
- nodejs_version: "5" | ||
platform: x86 | ||
- nodejs_version: "6" | ||
platform: x64 | ||
- nodejs_version: "6" | ||
platform: x86 | ||
|
||
install: | ||
- where npm | ||
- where node | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- for /f "delims=" %%a in ('where npm') do cd %%a\.. && npm install npm@latest | ||
- for /f "delims=" %%a in ('where npm') do cd %%a\.. && npm install node-pre-gyp@latest | ||
- 'if "%nodejs_version%_%platform%" == "4_x86" (npm config set -g cafile=package.json && npm config set -g strict-ssl=false)' | ||
|
||
build: off | ||
|
||
artifacts: | ||
- path: 'build/stage/**/bcrypt*.tar.gz' | ||
- path: package.json | ||
|
||
test_script: | ||
- node --version | ||
- npm --version | ||
- npm test | ||
|
||
after_test: | ||
- node-pre-gyp package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,17 @@ | |
"url": "https://github.com/ncb000gt/node.bcrypt.js/issues" | ||
}, | ||
"scripts": { | ||
"test": "node-gyp configure build && nodeunit test" | ||
"test": "npm install --build-from-source && nodeunit test", | ||
"install": "node-pre-gyp install --fallback-to-build" | ||
}, | ||
"dependencies": { | ||
"bindings": "1.2.1", | ||
"nan": "2.3.5" | ||
"nan": "2.3.5", | ||
"node-pre-gyp": "0.6.4" | ||
}, | ||
"bundledDependencies": [ | ||
"node-pre-gyp" | ||
], | ||
"devDependencies": { | ||
"nodeunit": "~0.9.1" | ||
}, | ||
|
@@ -49,5 +54,11 @@ | |
"Nate Rajlich <[email protected]> (https://github.com/tootallnate)", | ||
"Sean McArthur <[email protected]> (https://github.com/seanmonstar)", | ||
"Fanie Oosthuysen <[email protected]> (https://github.com/weareu)" | ||
] | ||
], | ||
"binary": { | ||
"module_name": "bcrypt_lib", | ||
"module_path": "./lib/binding/", | ||
"host": "https://github.com", | ||
"remote_path": "/ksmyth/node.bcrypt.js/releases/download/v{version}/" | ||
} | ||
} |