Add cache recommendations for use with Alpine/musl #354

Prevent Windows EBUSY errors during tests
This commit is contained in:
Lovell Fuller 2016-02-11 20:33:21 +00:00
parent 2a56de69cc
commit 2d05804fc3
5 changed files with 10 additions and 7 deletions

View File

@ -4,9 +4,8 @@
"maxparams": 4, "maxparams": 4,
"maxcomplexity": 13, "maxcomplexity": 13,
"globals": { "globals": {
"before": true,
"beforeEach": true, "beforeEach": true,
"after": true, "afterEach": true,
"describe": true, "describe": true,
"it": true "it": true
} }

View File

@ -37,7 +37,7 @@
[#351](https://github.com/lovell/sharp/pull/351) [#351](https://github.com/lovell/sharp/pull/351)
[@joelmukuthu](https://github.com/joelmukuthu) [@joelmukuthu](https://github.com/joelmukuthu)
* Check for glibc before downloading pre-compiled binaries. * Improve support for musl libc systems e.g. Alpine Linux.
[#354](https://github.com/lovell/sharp/issues/354) [#354](https://github.com/lovell/sharp/issues/354)
[@download13](https://github.com/download13) [@download13](https://github.com/download13)

View File

@ -41,6 +41,10 @@ the following command as a user with `sudo` access
curl -s https://raw.githubusercontent.com/lovell/sharp/master/preinstall.sh | sudo bash - curl -s https://raw.githubusercontent.com/lovell/sharp/master/preinstall.sh | sudo bash -
``` ```
For Linux-based operating systems such as Alpine that use musl libc,
the smaller stack size means libvips' cache should be disabled
via `sharp.cache(false)` to avoid a stack overflow.
### Mac OS ### Mac OS
[![OS X 10.9.5 Build Status](https://travis-ci.org/lovell/sharp-osx-ci.png?branch=master)](https://travis-ci.org/lovell/sharp-osx-ci) [![OS X 10.9.5 Build Status](https://travis-ci.org/lovell/sharp-osx-ci.png?branch=master)](https://travis-ci.org/lovell/sharp-osx-ci)

View File

@ -8,10 +8,10 @@ var fixtures = require('../fixtures');
describe('Clone', function() { describe('Clone', function() {
before(function() { beforeEach(function() {
sharp.cache(false); sharp.cache(false);
}); });
after(function() { afterEach(function() {
sharp.cache(true); sharp.cache(true);
}); });

View File

@ -8,10 +8,10 @@ var fixtures = require('../fixtures');
describe('Input/output', function() { describe('Input/output', function() {
before(function() { beforeEach(function() {
sharp.cache(false); sharp.cache(false);
}); });
after(function() { afterEach(function() {
sharp.cache(true); sharp.cache(true);
}); });