From 07e77f6309af42af913e9861d5a15a09e2b0d158 Mon Sep 17 00:00:00 2001 From: Arnout Kazemier Date: Thu, 30 Jul 2015 11:55:22 +0200 Subject: [PATCH 1/2] [minor] Use cross-spawn instead of spawn to resolve windows issues. Fixes #36 --- index.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1a41928..e399c2e 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ 'use strict'; -var spawn = require('child_process').spawn +var spawn = require('cross-spawn') , shelly = require('shelljs') , path = require('path') , util = require('util') diff --git a/package.json b/package.json index 5c36961..e3339e0 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "homepage": "https://github.com/observing/pre-commit", "license": "MIT", "dependencies": { + "cross-spawn": "2.0.x", "shelljs": "0.5.x" }, "devDependencies": { From 21e2d35117d842c46f74d27f3c602cee13457fb4 Mon Sep 17 00:00:00 2001 From: Arnout Kazemier Date: Thu, 30 Jul 2015 12:01:57 +0200 Subject: [PATCH 2/2] [travis] Added Node 0.12 and iojs --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b532c0c..8f4f8e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,14 @@ language: node_js node_js: - - "0.8" + - "0.12" - "0.10" - - "0.11" + - "0.8" + - "iojs" before_install: - "npm install -g npm@1.4.x" script: - "npm run test-travis" after_script: - "npm install coveralls@2.11.x && cat coverage/lcov.info | coveralls" +matrix: + fast_finish: true