remove support for node < 4
This commit is contained in:
parent
96c1e0998f
commit
07619f65c3
3 changed files with 4 additions and 19 deletions
|
@ -1,9 +1,5 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- "0.12"
|
||||
- "1"
|
||||
- "2"
|
||||
- "3"
|
||||
- "4"
|
||||
sudo: false
|
||||
script: "make test-travis"
|
||||
|
|
16
Makefile
16
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 \
|
||||
|
|
|
@ -53,8 +53,7 @@
|
|||
"test-console": "^0.7.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.12.0",
|
||||
"iojs": ">= 1.0.0"
|
||||
"node": ">= 4"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
|
|
Loading…
Reference in a new issue