diff --git a/.travis.yml b/.travis.yml index 9c1a7b6..7dc081a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: node_js node_js: - - '0.10' - - '0.12' - - '4' - - '5' + - '6' + - '8' + - '10' diff --git a/CHANGELOG.md b/CHANGELOG.md index dc5a250..0af92b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changes +## Unreleased + +* BREAKING CHANGE: Require Node 6 ## v1.5.6 diff --git a/appveyor.yml b/appveyor.yml index b29e6c6..66a853d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,8 +1,8 @@ environment: matrix: - - nodejs_version: '5' - - nodejs_version: '4' - - nodejs_version: '0.12' + - nodejs_version: '6' + - nodejs_version: '8' + - nodejs_version: '10' install: - ps: Install-Product node $env:nodejs_version - set CI=true diff --git a/package.json b/package.json index d092168..d8c2558 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "1.5.6", "description": "Run a child as if it's the foreground process. Give it stdio. Exit when it exits.", "main": "index.js", - "directories": { - "test": "test" + "engines": { + "node": ">=6.0.0" }, "dependencies": { "cross-spawn": "^4", @@ -28,6 +28,9 @@ "url": "https://github.com/tapjs/foreground-child/issues" }, "homepage": "https://github.com/tapjs/foreground-child#readme", + "directories": { + "test": "test" + }, "files": [ "index.js" ] diff --git a/test/basic.js b/test/basic.js index bfb2218..8cd75d0 100644 --- a/test/basic.js +++ b/test/basic.js @@ -119,7 +119,7 @@ t.test('exit codes', function (t) { t.end() }) -t.test('parent emits exit when SIGTERMed', { skip: isZero10OnTravis() || winSignals() }, function (t) { +t.test('parent emits exit when SIGTERMed', { skip: winSignals() }, function (t) { var which = ['parent', 'child', 'nobody'] which.forEach(function (who) { t.test('SIGTERM ' + who, function (t) { @@ -181,11 +181,6 @@ t.test('IPC forwarding', function (t) { }) }) -function isZero10OnTravis () { - return process.env.TRAVIS && /^v0\.10\.[0-9]+$/.test(process.version) ? - 'skip on 0.10 on Travis' : false -} - function winSignals () { return process.platform === 'win32' ? 'windows does not support unix signals' : false