Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #176 from dylang/process.env.SKIP_NODE_SASS_TESTS
Browse files Browse the repository at this point in the history
added ENV option to skip the build tests
  • Loading branch information
andrew committed Oct 30, 2013
2 parents bfccf22 + 7bd0b2f commit b433e87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,22 @@ 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]
--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
Special thanks to the following people for submitting patches:
Dean Mao
Brett Wilkins
litek
gonghao
Dylan Greene
### Note on Patches/Pull Requests
Expand Down
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (!{ia32: true, x64: true, arm: true}.hasOwnProperty(arch)) {

// Test for pre-built library
var modPath = platform + '-' + arch + '-v8-' + v8;
if (!force) {
if (!force && !process.env.SKIP_NODE_SASS_TESTS) {
try {
fs.statSync(path.join(__dirname, 'bin', modPath, 'binding.node'));
console.log('`'+ modPath+ '` exists; testing');
Expand Down

0 comments on commit b433e87

Please # to comment.