Skip to content

Commit

Permalink
build: improve platform portability
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 18, 2014
1 parent 328c6d3 commit 1717516
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ matrix:
allow_failures:
- node_js: "0.11"
fast_finish: true
script: "npm run-script test-travis"
4 changes: 3 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ To run the test suite, first invoke the following command within the repo, insta

Then run the tests:

$ make test
```sh
$ npm test
```

## Contributors

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
},
"scripts": {
"prepublish": "npm prune",
"test": "make test"
"test": "mocha --require test/support/env --reporter dot --check-leaks test/ test/acceptance/",
"test-travis": "mocha --require test/support/env --reporter spec --check-leaks test/ test/acceptance/"
},
"engines": {
"node": ">= 0.8.0"
Expand Down
2 changes: 2 additions & 0 deletions test/support/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

process.env.NODE_ENV = 'test';

0 comments on commit 1717516

Please sign in to comment.