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
node_js:
- "0.12"
- "1"
- "2"
- "3"
- "4"
sudo: false
script: "make test-travis"

View file

@ -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 \

View file

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