remove support for node < 4

This commit is contained in:
Jonathan Ong 2015-10-10 23:43:45 -07:00
parent 96c1e0998f
commit 07619f65c3
3 changed files with 4 additions and 19 deletions

View file

@ -1,9 +1,5 @@
language: node_js language: node_js
node_js: node_js:
- "0.12"
- "1"
- "2"
- "3"
- "4" - "4"
sudo: false sudo: false
script: "make test-travis" script: "make test-travis"

View file

@ -2,16 +2,6 @@ SRC = lib/*.js
include node_modules/make-lint/index.mk 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 REQUIRED = --require should --require should-http
TESTS = test/application \ TESTS = test/application \
@ -21,14 +11,14 @@ TESTS = test/application \
test/experimental/index.js test/experimental/index.js
test: test:
@NODE_ENV=test $(BIN) $(FLAGS) \ @NODE_ENV=test node \
./node_modules/.bin/_mocha \ ./node_modules/.bin/_mocha \
$(REQUIRED) \ $(REQUIRED) \
$(TESTS) \ $(TESTS) \
--bail --bail
test-cov: test-cov:
@NODE_ENV=test $(BIN) $(FLAGS) \ @NODE_ENV=test node \
./node_modules/.bin/istanbul cover \ ./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \ ./node_modules/.bin/_mocha \
-- -u exports \ -- -u exports \
@ -37,7 +27,7 @@ test-cov:
--bail --bail
test-travis: test-travis:
@NODE_ENV=test $(BIN) $(FLAGS) \ @NODE_ENV=test node \
./node_modules/.bin/istanbul cover \ ./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \ ./node_modules/.bin/_mocha \
--report lcovonly \ --report lcovonly \

View file

@ -53,8 +53,7 @@
"test-console": "^0.7.1" "test-console": "^0.7.1"
}, },
"engines": { "engines": {
"node": ">= 0.12.0", "node": ">= 4"
"iojs": ">= 1.0.0"
}, },
"files": [ "files": [
"lib" "lib"