Skip to content

Commit

Permalink
Use node-pre-gyp to publish binaries (fixes lovell#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
kondi committed Oct 4, 2016
1 parent dcd1392 commit ab08c1c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=g++-4.8; fi
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- COMMIT_MESSAGE=$(git log --format=%B --no-merges -n 1 | tr -d '\n')
- if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then ./node_modules/.bin/node-pre-gyp package publish; fi;
env:
global:
- secure: KDDtQ/EDTo4hhTIuToGl50qpiCEsQHMMFlAFR05KEauwH5N0dZqnXZ4lxbmOhwfh0qC9AasaqGtdaSAkq1NyTADfHzfMR3v8BskOV91654iLWy/YURfmPskyFYvtFv0qc6LHTs1ECDMH4M78PoFmIWdw5ym7KKaMvAiiaA28DNLr7r4ufcCPTTV4v3hX6q7e02F32JpgObmgqHSjSyYO7xLfV0s4lCyOiRS7PuVI5KnUfQcPZxyHodJgIXEvQM44AAgEpTEfoPX1hwXS3Pp/cXnkljDJ/2tAo2lf5HHpWYbXrgWUNeCs3jOo/slBnsY7xpgJ2eArUg/yAc8TDzsrZOyX+hznAC1eTi3PO+gxO2xwZpmuMzIGEeYNdU0wSyIqR+c4qgXJVFPGIF+mBlEWVfb7PXv8iCZkzkWpccJBzfupIE1TkpuFrInIJA4hzHEyU4uQM3D3dKOhASMdpGPmKchCzTw9JTX0XDF/hM+gtU9vctkXi/XuPchcrsWSLZO8MABhAVdczq5fveazVN0aXM8AXZqt2wW6mdIKEKdDFjBJIpeKP+/Ly0HoE+2llu5sezxN68Cauwedel5XJ4nMOomo9MT9Lk7FLpSktCMMFskX7jhWL7ds+7WWG/sNb68pRgaRPns0HILw8fkNRcPSG+iCWeEcOOQDYpjaLjXNU2Y=
- secure: gsyiVud22dUVZS9c1gXt1gaTzAiIhqOSZI6+HXZQws+bR7fGGpSMl8yV7paPjzOInk9e3YJqvjU6GnPAPo3/iRsngNO9PKjWhjCYxorFs90LuIrT3f1ikuPmB1t0dCNwx/zxXV7yqV9Y2XpQWc6drvCqis/yKqs9XRMprCfFKH3e2rRwXQ+uN5bj2IfQsU4Bnp+IJXAzQDcsZQ0Tec2vqZHK2KiC715LP9ycwaayBjuWg365ijzr4hNFlpNrMhy3zjG5QmHgPyVoKr98AK8FwL59ZWxvBrg+x4JnX+3hmRIcZhfsusdEjAwcMhsLxri1MHmvRZZ7M5TNVENjLf9TYd9M2c/vAY0ndC8HdUXPeWoMOsIEm8MwhApOWj0G5MMgHxt5e7DXDCAaMks5k2NKwGZvnmdimLm2WQPMymQJvGqjBhKGXS05qUFS/y2NDvxgm/VhnsoUA9ftNUBhCwd/F8+fAJ6Oi6s5G/2p793C25MPFJ6uMaYytdzhVcL9J1TNNfE4AKLASKCg5eCV5/KOUzKPXxzfdN2ayw5G/j3r8tca+5U/8wxRh9/9v/MAF0swGBAy32DGBdyUwRl1bmVBItCH2dcOvLd3cQq3HX7RyUA7jgBpDuzWzZGCHLdaFhY8cnVvnTSgXasuCm5RGKR40PhkJI9TRX/2xwH+w0x6j14=
6 changes: 6 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ build: off
platform: x64
environment:
VIPS_WARNING: 0
node_pre_gyp_accessKeyId:
secure: FZqYCWy6PGfdCY6lUMMwurrstrVJWFl+0a4mSas/JZo=
node_pre_gyp_secretAccessKey:
secure: x961+zy88oXOB9rM+uT0gzjy+2ToB699qDVwf6HTsENsiOTdFMT6I3tCbzWiLI+0
matrix:
- nodejs_version: "0.12"
- nodejs_version: "4"
Expand All @@ -14,3 +18,5 @@ install:
- npm install
test_script:
- npm run-script test-win
on_success:
- ps: if($env:APPVEYOR_REPO_COMMIT_MESSAGE.ToLower().Contains('[publish binary]')) { .\node_modules\.bin\node-pre-gyp package publish }
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,20 @@
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP and TIFF images",
"scripts": {
"clean": "rm -rf node_modules/ build/ include/ lib/ coverage/ test/fixtures/output.*",
"preinstall": "npm install node-pre-gyp",
"install": "node-pre-gyp install --fallback-to-build",
"test": "VIPS_WARNING=0 node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- --slow=5000 --timeout=30000 ./test/unit/*.js",
"test-win": "node ./node_modules/mocha/bin/mocha --slow=5000 --timeout=60000 ./test/unit/*.js",
"test-leak": "./test/leak/leak.sh",
"test-packaging": "./packaging/test-linux-x64.sh",
"test-clean": "rm -rf coverage/ test/fixtures/output.* && npm install && npm test"
},
"binary": {
"module_name" : "sharp",
"module_path" : "./build/{configuration}/",
"remote_path" : "./{module_name}/v{version}/{configuration}/",
"host" : "https://kondi-sharp.s3.amazonaws.com"
},
"main": "index.js",
"repository": {
"type": "git",
Expand All @@ -62,12 +70,14 @@
"bluebird": "^3.4.1",
"color": "^0.11.3",
"nan": "^2.4.0",
"semver": "^5.3.0",
"node-pre-gyp": "^0.6.30",
"request": "^2.74.0",
"semver": "^5.3.0",
"tar": "^2.2.1"
},
"devDependencies": {
"async": "^2.0.1",
"aws-sdk": "^2.6.6",
"bufferutil": "^1.2.1",
"coveralls": "^2.11.12",
"exif-reader": "^1.0.1",
Expand Down

0 comments on commit ab08c1c

Please sign in to comment.