Skip to content

Commit

Permalink
[publish binary] 0.3.0-pre1
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenTiki committed Jun 29, 2016
1 parent 9dc398d commit 2d4d1f4
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ env:
- secure: wugo4xhy7hO5SErSxysmEWvcOmuiCrexcS65qMUgFCkiN0ZyPiMhjY0n4EQinj5PCFbToM/4AQO8WjEgbDAljEvMuf63vx1git9bck69zpCAqh+XmaD8MJNBbtmVbUaADL3JLTY+/ObfRv8LQOIVmHXKk1GD8VSnJgOT3RKl/ZRWXrGUFByta37j3M8RTHyEMxhTR7NHD9Hl8CjNLfz22JQgcIWrhJl8OHZbwL8XZ9sL77Zwe1AQkaAh4BKReOetza1cyLq2HNANI+a3PrzCzP8Lc63r8kOEoMrP2fENHua689z64FrGwup6Ltfl2DGnCWZkknrm8djUQEjXBWxToqtYWVbZF0Lu14LxPG0mXT6X9lu284THdWJEkQ7xzPoF+yCFdVfvSKE+ktJKqK4wJk91RtpLqOkIzCxyvQRDLxT128FVOfWu/uiWZjbxLQHlUvZm4ZQH1FMH2c3PE4oYS+LOUhJNfmz9fEFEKKivh7BG5ZFbtIQSSd/iRyOXbbetkT6rZJdXVRyWqsuHfux6wbyCeDE/Od5ptGG1Z44tshpgX1waKFt26YG6dWdyuQxvVRip6RSKS/Bik9Iwe7J3rexUYnVzHbQgBpl0BXlK8rC+I22To/Z91bLGSzeXvc6nAEIT3tPeHK+AkBJp1iGSd++Ui/aEi16YKnJS2V7tWzo=
before_install:
- export PUBLISHABLE=${PUBLISHABLE:-true}
- if [[ $(uname -s) == 'Linux' ]]; then export CXX="clang++-3.5"; export CC="clang-3.5";
export PYTHONPATH=$(pwd)/py-local/lib/python2.7/site-packages; else export PYTHONPATH=$(pwd)/py-local/lib/python/site-packages;
- if [[ $(uname -s) == 'Linux' ]]; then
export CXX="clang++-3.5";
export CC="clang-3.5";
export PYTHONPATH=$(pwd)/py-local/lib/python2.7/site-packages;
else
export PYTHONPATH=$(pwd)/py-local/lib/python/site-packages;
fi;
- scripts/validate_tag.sh
- source ./scripts/install_node.sh ${NODE_VERSION}
Expand Down
41 changes: 41 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets

all: build

./node_modules:
npm install --build-from-source

build: ./node_modules
./node_modules/.bin/node-pre-gyp build --loglevel=silent

debug:
./node_modules/.bin/node-pre-gyp rebuild --debug

verbose:
./node_modules/.bin/node-pre-gyp rebuild --loglevel=verbose

clean:
@rm -rf ./build
rm -rf lib/binding/
rm -f test/support/big.db-journal
rm -rf ./node_modules/

grind:
valgrind --leak-check=full node node_modules/.bin/_mocha

testpack:
rm -f ./*tgz
npm pack
tar -ztvf *tgz
rm -f ./*tgz

rebuild:
@make clean
@make

test:
@PATH="./node_modules/.bin:${PATH}" && NODE_PATH="./lib:$(NODE_PATH)" standard && tap test.js

check: test

.PHONY: test clean build
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "native-hdr-histogram",
"version": "0.2.1",
"version": "0.3.0-pre1",
"description": "node.js bindings for hdr histogram C implementation",
"main": "histogram.js",
"gypfile": "true",
"scripts": {
"prepublish":"npm ls",
"preinstall":"npm install node-pre-gyp",
"install" : "node-pre-gyp install --fallback-to-build",
"test": "node-pre-gyp install --fallback-to-build && standard && tap test.js",
"prepublish": "npm ls"
"install": "node-pre-gyp install --fallback-to-build",
"test": "node-pre-gyp install --fallback-to-build && standard && tap test.js"
},
"precommit": ["test"],
"repository": {
Expand All @@ -27,6 +27,7 @@
},
"homepage": "https://github.com/mcollina/native-hdr-histogram#readme",
"devDependencies": {
"aws-sdk": "2.x",
"pre-commit": "^1.1.2",
"standard": "^6.0.7",
"tap": "^5.7.0"
Expand Down
1 change: 0 additions & 1 deletion scripts/build_against_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function publish() {
npm install --build-from-source --clang=1
npm test


publish

platform=$(uname -s | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/")
Expand Down

0 comments on commit 2d4d1f4

Please sign in to comment.