Skip to content

Commit

Permalink
fixing node 0.10 and iojs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicbarnes committed Jul 10, 2015
1 parent 7e48264 commit 8e5f831
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@

NODE ?= node
NODE_FLAGS ?= $(shell $(NODE) --v8-options | grep generators | cut -d ' ' -f 3)

BIN := ./node_modules/.bin
MOCHA := $(BIN)/mocha
MOCHA := $(BIN)/_mocha
ESLINT := $(BIN)/eslint

test: node_modules
@$(MOCHA)
@$(NODE) $(NODE_FLAGS) $(MOCHA)

node_modules: package.json
@npm install
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"unyield": "0.0.1"
},
"devDependencies": {
"co-mocha": "~1.0.3",
"eslint": "^0.24.0",
"eslint-config-duo": "0.0.1",
"gnode": "^0.1.1",
"mocha": "^2.2.5",
"node-netrc": "0.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--harmony-generators
--reporter spec
--require gnode
--slow 1s
--timeout 5s
--bail

0 comments on commit 8e5f831

Please sign in to comment.