Commit 7bd0b2fe by Dylan Greene

added ENV option to skip the tests, updated docs

parent c5fa4848
...@@ -146,6 +146,14 @@ Output will be saved with the same name as input SASS file into the current work ...@@ -146,6 +146,14 @@ Output will be saved with the same name as input SASS file into the current work
--include-path Path to look for @import-ed files [default: cwd] --include-path Path to look for @import-ed files [default: cwd]
--help, -h Print usage info --help, -h Print usage info
## Post-install Build
Install runs a series of Mocha tests to see if your machine can use the pre-built `libsass` which will save some time during install. If any tests fail it will build from source.
If you know the pre-built version will work and do not want to wait for the tests to run you can skip the tests by setting the environment variable `SKIP_NODE_SASS_TESTS` to true.
SKIP_NODE_SASS_TESTS=true npm install
## Contributors ## Contributors
Special thanks to the following people for submitting patches: Special thanks to the following people for submitting patches:
...@@ -153,6 +161,7 @@ Dean Mao ...@@ -153,6 +161,7 @@ Dean Mao
Brett Wilkins Brett Wilkins
litek litek
gonghao gonghao
Dylan Greene
### Note on Patches/Pull Requests ### Note on Patches/Pull Requests
......
...@@ -29,7 +29,7 @@ if (!{ia32: true, x64: true, arm: true}.hasOwnProperty(arch)) { ...@@ -29,7 +29,7 @@ if (!{ia32: true, x64: true, arm: true}.hasOwnProperty(arch)) {
// Test for pre-built library // Test for pre-built library
var modPath = platform + '-' + arch + '-v8-' + v8; var modPath = platform + '-' + arch + '-v8-' + v8;
if (!force) { if (!force && !process.env.SKIP_NODE_SASS_TESTS) {
try { try {
fs.statSync(path.join(__dirname, 'bin', modPath, 'binding.node')); fs.statSync(path.join(__dirname, 'bin', modPath, 'binding.node'));
console.log('`'+ modPath+ '` exists; testing'); console.log('`'+ modPath+ '` exists; testing');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment