Skip to content

Commit 0ca45d7

Browse files
committed
added testling and travis-ci badges
1 parent a3f36aa commit 0ca45d7

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- "0.8"
4+
- "0.10"
5+
before_install:
6+
- npm install -g npm@~1.4.6

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ typedarray-pool
22
===============
33
A global pool for typed arrays.
44

5-
## Example
5+
[![testling badge](https://ci.testling.com/mikolalysenko/typedarray-pool.png)](https://ci.testling.com/mikolalysenko/typedarray-pool)
6+
7+
[![build status](https://secure.travis-ci.org/mikolalysenko/typedarray-pool.png)](http://travis-ci.org/mikolalysenko/typedarray-pool)
8+
9+
# Example
610

711
```javascript
812
var pool = require("typedarray-pool")
@@ -16,11 +20,11 @@ var f = pool.malloc(128, "float")
1620
pool.free(f)
1721
```
1822

19-
## Install
23+
# Install
2024

2125
npm install typedarray-pool
2226

23-
## API
27+
# API
2428

2529
```javascript
2630
var pool = require("typedarray-pool")
@@ -84,7 +88,7 @@ Returns the array back to the pool.
8488
### `pool.clearCache()`
8589
Removes all references to cached arrays. Use this when you are done with the pool to return all the cached memory to the garbage collector.
8690

87-
## FAQ
91+
# FAQ
8892

8993
### Why cache typed arrays?
9094
Creating typed arrays is stupidly expensive in most JS engines. So it makes sense to pool them, both so that frequently used typed arrays stay hot in cache and so that you can avoid having to trigger some expensive realloc operation whenever you use them.

package.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,21 @@
3636
"author": "Mikola Lysenko",
3737
"license": "MIT",
3838
"readmeFilename": "README.md",
39-
"gitHead": "d7a8a448caf51042e6c371b11074aab6ebaf53ad"
39+
"gitHead": "d7a8a448caf51042e6c371b11074aab6ebaf53ad",
40+
"testling": {
41+
"files": "test/*.js",
42+
"browsers": [
43+
"ie/8..latest",
44+
"firefox/17..latest",
45+
"firefox/nightly",
46+
"chrome/22..latest",
47+
"chrome/canary",
48+
"opera/12..latest",
49+
"opera/next",
50+
"safari/5.1..latest",
51+
"ipad/6.0..latest",
52+
"iphone/6.0..latest",
53+
"android-browser/4.2..latest"
54+
]
55+
}
4056
}

0 commit comments

Comments
 (0)