-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from node-webot/koa2
Support koa2
- Loading branch information
Showing
10 changed files
with
315 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
example | ||
.DS_Store | ||
coverage | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
language: node_js | ||
node_js: | ||
- "4" | ||
- "6" | ||
- "7" | ||
script: make test-coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
TESTS = test/*.js | ||
REPORTER = spec | ||
TIMEOUT = 20000 | ||
PATH := ./node_modules/.bin:$(PATH) | ||
MOCHA = ./node_modules/mocha/bin/_mocha | ||
COVERALLS = ./node_modules/coveralls/bin/coveralls.js | ||
PATH := ./node_modules/.bin:$(PATH) | ||
|
||
lint: | ||
@eslint --fix lib index.js test | ||
|
||
test: | ||
NODE_ENV=test mocha -R $(REPORTER) -t $(TIMEOUT) \ | ||
$(MOCHA_OPTS) $(TESTS) | ||
test: lint | ||
@mocha -t $(TIMEOUT) -R spec $(TESTS) | ||
|
||
test-cov: | ||
@NODE_ENV=test \ | ||
istanbul cover --report html $(MOCHA) -- -t $(TIMEOUT) -R spec $(TESTS) | ||
@nyc --reporter=html --reporter=text mocha -t $(TIMEOUT) -R spec $(TESTS) | ||
|
||
test-coveralls: | ||
@NODE_ENV=test \ | ||
istanbul cover --report lcovonly $(MOCHA) -- -t $(TIMEOUT) -R spec $(TESTS) | ||
@nyc mocha -t $(TIMEOUT) -R spec $(TESTS) | ||
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID) | ||
@cat ./coverage/lcov.info | $(COVERALLS) && rm -rf ./coverage | ||
@nyc report --reporter=text-lcov | coveralls | ||
|
||
.PHONY: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.