Skip to content

Commit

Permalink
Test on Node.js 4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoopa committed Sep 9, 2015
1 parent d1d3d53 commit e0e2643
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ env:
- TRAVIS_NODE_VERSION="0.8"
- TRAVIS_NODE_VERSION="0.10"
- TRAVIS_NODE_VERSION="0.12"
- TRAVIS_NODE_VERSION="iojs-1"
- TRAVIS_NODE_VERSION="iojs-2"
- TRAVIS_NODE_VERSION="iojs-3"
- TRAVIS_NODE_VERSION="4"
notifications:
email:
- rod@vagg.org
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- npm install npm
- mv node_modules npm
- npm/.bin/npm --version
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
- $CXX --version
- npm/.bin/npm install
- if [[ $TRAVIS_NODE_VERSION == "0.8" ]]; then node_modules/.bin/node-gyp rebuild --directory test; else node_modules/.bin/pangyp rebuild --directory test; fi
- node_modules/.bin/node-gyp rebuild --directory test
script: node_modules/.bin/tap --gc test/js/*-test.js
11 changes: 4 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,26 @@ environment:
- nodejs_version: "0.8"
- nodejs_version: "0.10"
- nodejs_version: "0.12"
# io.js
- nodejs_version: "1"
- nodejs_version: "2"
- nodejs_version: "3"
- nodejs_version: "4"

# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node 0.STABLE.latest
- ps: if($env:nodejs_version -eq "0.8") {Install-Product node $env:nodejs_version}
- ps: if($env:nodejs_version -ne "0.8") {Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)}
- ps: {Install-Product node $env:nodejs_version}
- IF %nodejs_version% LSS 1 npm -g install npm
- IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
# Typical npm stuff.
- npm install
- IF %nodejs_version% EQU 0.8 (node node_modules\node-gyp\bin\node-gyp.js rebuild --msvs_version=2013 --directory test) ELSE (npm run rebuild-tests)
- npm run rebuild-tests

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- IF %nodejs_version% LSS 1 (npm test) ELSE (iojs node_modules\tap\bin\tap.js --gc test/js/*-test.js)
- IF %nodejs_version% LSS 1 (npm test) ELSE (IF %nodejs_version% LSS 4 (iojs node_modules\tap\bin\tap.js --gc test/js/*-test.js) ELSE (node node_modules\tap\bin\tap.js --gc test/js/*-test.js))

# Don't actually build.
build: off
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"test": "tap --gc test/js/*-test.js",
"rebuild-tests": "pangyp rebuild --msvs_version=2013 --directory test",
"rebuild-tests": "node-gyp rebuild --msvs_version=2013 --directory test",
"docs": "doc/.build.sh"
},
"contributors": [
Expand All @@ -26,7 +26,6 @@
"commander": "^2.8.1",
"glob": "^5.0.14",
"node-gyp": "~3.0.1",
"pangyp": "~2.2.0",
"tap": "~0.7.1",
"xtend": "~4.0.0"
},
Expand Down
5 changes: 3 additions & 2 deletions test/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
, "sources" : [ "cpp/news.cpp" ]
}
, {
"target_name" : "morenews"
, "sources" : [ "cpp/morenews.cpp" ]
"target_name" : "morenews"
, "win_delay_load_hook" : "false"
, "sources" : [ "cpp/morenews.cpp" ]
}
, {
"target_name" : "returnvalue"
Expand Down

0 comments on commit e0e2643

Please sign in to comment.