Skip to content

Commit

Permalink
Reduce the support matrix
Browse files Browse the repository at this point in the history
Require Node v4, Chai v4, and Sinon v4 at least.
  • Loading branch information
domenic committed Mar 6, 2018
1 parent baf4a43 commit 9021278
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
27 changes: 4 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
language: node_js
node_js:
- "0.10"
- 4
- stable
env:
# Can't figure out how to DRY this up: http://stackoverflow.com/q/22397300/3191
- CHAI_VERSION=^1.9.2 SINON_VERSION=^1.4.0
- CHAI_VERSION=^2.0.0 SINON_VERSION=^1.4.0
- CHAI_VERSION=^3.0.0 SINON_VERSION=^1.4.0
- CHAI_VERSION=^4.0.0 SINON_VERSION=^1.4.0
- CHAI_VERSION=^1.9.2 SINON_VERSION=^2.1.0
- CHAI_VERSION=^2.0.0 SINON_VERSION=^2.1.0
- CHAI_VERSION=^3.0.0 SINON_VERSION=^2.1.0
- CHAI_VERSION=^4.0.0 SINON_VERSION=^2.1.0
- CHAI_VERSION=^1.9.2 SINON_VERSION=^3.0.0
- CHAI_VERSION=^2.0.0 SINON_VERSION=^3.0.0
- CHAI_VERSION=^3.0.0 SINON_VERSION=^3.0.0
- CHAI_VERSION=^4.0.0 SINON_VERSION=^3.0.0
- CHAI_VERSION=^1.9.2 SINON_VERSION=^4.0.0
- CHAI_VERSION=^2.0.0 SINON_VERSION=^4.0.0
- CHAI_VERSION=^3.0.0 SINON_VERSION=^4.0.0
# This matrix used to be larger. In 3.0.0 we moved to only supporting these versions.
# But, we'll retain the infrastructure for a larger matrix, in case we need it in the future.
- CHAI_VERSION=^4.0.0 SINON_VERSION=^4.0.0
script:
- test $TRAVIS_NODE_VERSION == "0.10" || npm run lint
- npm run lint
- npm run test-travis
before_install:
- if [ `npm -v` = "5.3.0" ]; then
npm install -g npm@^5.4.2;
npm -v;
fi
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"cover": "istanbul cover node_modules/mocha/bin/_mocha && opener ./coverage/lcov-report/lib/sinon-chai.js.html"
},
"peerDependencies": {
"chai": ">=1.9.2 <5",
"sinon": "^1.4.0 || ^2.1.0 || ^3.0.0 || ^4.0.0"
"chai": "^4.0.0",
"sinon": "^4.0.0"
},
"devDependencies": {
"chai": "^4.1.0",
Expand Down

0 comments on commit 9021278

Please sign in to comment.