Skip to content

Commit 9273475

Browse files
committed
add travis integration
1 parent b71a789 commit 9273475

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
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.6
4+
branches:
5+
only:
6+
- travis

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
jasmine-node
22
======
33

4+
[![Build Status](https://secure.travis-ci.org/spaghetticode/jasmine-node.png)](http://travis-ci.org/spaghetticode/jasmine-node)
5+
46
This node.js module makes the wonderful Pivotal Lab's jasmine
57
(http://github.com/pivotal/jasmine) spec framework available in
68
node.js.
@@ -12,9 +14,9 @@ install
1214
usage
1315
------
1416

15-
Write the specifications for your code in *.js and *.coffee files in the
16-
spec/ directory (note: your specification files must end with either
17-
.spec.js or .spec.coffee; otherwise jasmine-node won't find them!). You
17+
Write the specifications for your code in *.js and *.coffee files in the
18+
spec/ directory (note: your specification files must end with either
19+
.spec.js or .spec.coffee; otherwise jasmine-node won't find them!). You
1820
can use sub-directories to better organise your specs.
1921

2022
If you have installed the npm package, you can run it with:
@@ -44,7 +46,7 @@ async tests
4446
-----------
4547

4648
jasmine-node includes an alternate syntax for writing asynchronous tests. Accepting
47-
a done callback in the specification will trigger jasmine-node to run the test
49+
a done callback in the specification will trigger jasmine-node to run the test
4850
asynchronously waiting until the done() callback is called.
4951

5052
```javascript
@@ -56,8 +58,8 @@ asynchronously waiting until the done() callback is called.
5658
});
5759
```
5860

59-
An asynchronous test will fail after 5000 ms if done() is not called. This timeout
60-
can be changed by setting jasmine.DEFAULT_TIMEOUT_INTERVAL or by passing a timeout
61+
An asynchronous test will fail after 5000 ms if done() is not called. This timeout
62+
can be changed by setting jasmine.DEFAULT_TIMEOUT_INTERVAL or by passing a timeout
6163
interval in the specification.
6264

6365
it("should respond with hello world", function(done) {

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525
}
2626
, "bin" : "bin/jasmine-node"
2727
, "main" : "lib/jasmine-node"
28+
, "scripts" : { "test" : "node lib/jasmine-node/cli.js spec" }
2829
}

0 commit comments

Comments
 (0)