Skip to content

Commit

Permalink
Node 6 lab fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Lacey authored and Shane Lacey committed May 17, 2016
1 parent 68a0ca6 commit 6251c1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ cache:
- node_modules

before_script:
- if [[ $TRAVIS_NODE_VERSION == "6" ]]; then export LAB_FLAGS="--leaks"; else export LAB_FLAGS=""; fi
- npm install seneca$SENECA_VER
- echo FLAGS:$LAB_FLAGS

after_script:
npm run coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"license": "MIT",
"main": "user.js",
"scripts": {
"test": "lab -P test -r console -v -m 3000 -t 76",
"test": "lab -P test -r console -v -m 3000 -t 76 $LAB_FLAGS",
"test:node6": "LAB_FLAGS='--leaks' && npm test",
"lint": "lab -dL",
"coverage": "lab -s -P test -r lcov | coveralls",
"annotate": "docco user.js -o doc"
Expand Down

0 comments on commit 6251c1c

Please sign in to comment.