Skip to content

Commit

Permalink
Re-enable io.js support on .travis.yml
Browse files Browse the repository at this point in the history
On the 3rd of February, the planned roll out on Travis was reverted
and is now rescheduled for a later date. This commit re-enables io.js
support on Travis due the original one being reverted.
  • Loading branch information
Rui Marinho authored and jonathanong committed Feb 6, 2015
1 parent 78c7aad commit 6d5f506
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
node_js:
- "0.11"
- iojs
script: "make test-travis"
after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"
23 changes: 16 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@

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-generators
endif

TESTS = test/application \
test/context/* \
test/request/* \
test/response/*

test:
@NODE_ENV=test ./node_modules/.bin/mocha \
@NODE_ENV=test $(BIN) $(FLAGS) \
./node_modules/.bin/_mocha \
--require should \
--harmony \
$(TESTS) \
--bail

test-cov:
@NODE_ENV=test node --harmony \
node_modules/.bin/istanbul cover \
@NODE_ENV=test $(BIN) $(FLAGS) \
./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
-- -u exports \
--require should \
$(TESTS) \
--bail

test-travis:
@NODE_ENV=test node --harmony \
node_modules/.bin/istanbul cover \
@NODE_ENV=test $(BIN) $(FLAGS) \
./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
--report lcovonly \
-- -u exports \
Expand Down

0 comments on commit 6d5f506

Please # to comment.