Skip to content

Commit

Permalink
Add support for mocha v4 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore authored and blakeembrey committed Oct 11, 2017
1 parent 4d57369 commit dfff20e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -9,18 +9,22 @@ notifications:
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

before_script:
- npm install $MOCHA --force

env:
- MOCHA=mocha@1
- MOCHA=mocha@2
- MOCHA=mocha@3
- MOCHA=mocha@4

node_js:
- "0.10"
- "4"
- "stable"

matrix:
exclude:
- env: MOCHA=mocha@4
node_js: "0.10"

after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -13,7 +13,7 @@
"build": "browserify lib/co-mocha.js -s co-mocha -o co-mocha.js",
"test-spec": "mocha --harmony -R spec --require lib/co-mocha.js --bail",
"test-cov": "testem ci -l Firefox,Node",
"test": "npm run lint && npm run build && npm run test-cov"
"test": "mocha -V && npm run lint && npm run build && npm run test-cov"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -59,6 +59,6 @@
"is-generator": "^1.0.1"
},
"peerDependencies": {
"mocha": ">=1.18 <4"
"mocha": ">=1.18 <5"
}
}

0 comments on commit dfff20e

Please sign in to comment.