Skip to content

Commit

Permalink
Add support for io.js
Browse files Browse the repository at this point in the history
Unfortunately version 1.6.2 of nan appears to be broken
(nodejs/nan#265) so we pin to 1.5.0 until 1.6.2
comes out
  • Loading branch information
ForbesLindesay committed Feb 5, 2015
1 parent 1646f1f commit ed89191
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ os:
- linux
- osx

env:
matrix:
- NODE_VERSION="0.10"
- NODE_VERSION="iojs"

# What we'll be using to compile
compiler:
- gcc
Expand All @@ -30,8 +35,8 @@ install:
- rm -rf ~/.nvm/
- git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install 0.10
- nvm use 0.10
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION

# put local node-pre-gyp on PATH
- export PATH=./node_modules/.bin/:$PATH
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"main": "index.js",
"gypfile": true,
"dependencies": {
"nan": "^1.5.0",
"node-pre-gyp": "^0.6.1"
"nan": "<2.0.0 >1.6.2 || 1.5.0",
"node-pre-gyp": "^0.6.2"
},
"devDependencies": {},
"bundledDependencies": [
Expand All @@ -30,4 +30,4 @@
},
"author": "ForbesLindesay",
"license": "MIT"
}
}

0 comments on commit ed89191

Please sign in to comment.