From 07619f65c33122317bc4f3e4ff24c55c8e4a49c4 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Sat, 10 Oct 2015 23:43:45 -0700 Subject: [PATCH] remove support for node < 4 --- .travis.yml | 4 ---- Makefile | 16 +++------------- package.json | 3 +-- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5cd485d..1e484d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,5 @@ language: node_js node_js: - - "0.12" - - "1" - - "2" - - "3" - "4" sudo: false script: "make test-travis" diff --git a/Makefile b/Makefile index 8efd4e8..827dff9 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,6 @@ SRC = lib/*.js include node_modules/make-lint/index.mk -BIN = iojs - -ifeq ($(findstring io.js, $(shell which node)),) - BIN = node -endif - -ifeq (node, $(BIN)) - FLAGS = --harmony -endif - REQUIRED = --require should --require should-http TESTS = test/application \ @@ -21,14 +11,14 @@ TESTS = test/application \ test/experimental/index.js test: - @NODE_ENV=test $(BIN) $(FLAGS) \ + @NODE_ENV=test node \ ./node_modules/.bin/_mocha \ $(REQUIRED) \ $(TESTS) \ --bail test-cov: - @NODE_ENV=test $(BIN) $(FLAGS) \ + @NODE_ENV=test node \ ./node_modules/.bin/istanbul cover \ ./node_modules/.bin/_mocha \ -- -u exports \ @@ -37,7 +27,7 @@ test-cov: --bail test-travis: - @NODE_ENV=test $(BIN) $(FLAGS) \ + @NODE_ENV=test node \ ./node_modules/.bin/istanbul cover \ ./node_modules/.bin/_mocha \ --report lcovonly \ diff --git a/package.json b/package.json index 3801067..9e6a7d0 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,7 @@ "test-console": "^0.7.1" }, "engines": { - "node": ">= 0.12.0", - "iojs": ">= 1.0.0" + "node": ">= 4" }, "files": [ "lib"