add npm script rebuild, always build from source on travis

This commit is contained in:
Mike Morris
2015-02-18 12:21:18 -05:00
parent 24946b29fa
commit 6e7278d72d
2 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ before_install:
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then export LD_LIBRARY_PATH=`mason prefix mesa 10.4.3`/lib:$LD_LIBRARY_PATH; glxinfo; fi
install:
- npm install
- npm run-script rebuild
before_script:
# Set the core file limit to unlimited so a core file is generated upon crash

View File

@@ -33,7 +33,8 @@
},
"scripts": {
"install": "node-pre-gyp install || make",
"test": "make test"
"test": "make test",
"rebuild": "make clean && make"
},
"gypfile": true,
"binary": {