-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- @cantremember/node-mocks-http - config efficiency - ci integration - travis-ci.org - coveralls.io - #!/bin/bash - massive dependency upgrade - httpMocks.createRequest({ query }) - supertest#expect(302) for all redirects - mock and retrieve from request#query Object hash - throw an Error in supertest#expect filters
- Loading branch information
1 parent
42035f8
commit 0c226f2
Showing
29 changed files
with
173 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
language: node_js | ||
node_js: | ||
- "0.12" | ||
- "0.10" | ||
- stable | ||
|
||
before_install: | ||
- "npm install -g npm@^2.7.x" | ||
script: "npm run ci" | ||
|
||
branches: | ||
only: | ||
- master | ||
- develop | ||
# - edge | ||
|
||
# http://docs.travis-ci.com/user/build-configuration/ | ||
# services: [] | ||
# env: [] | ||
# before_script: [] | ||
# after_failure: [] | ||
# after_script: [] |
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
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
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
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
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,55 +1,64 @@ | ||
{ | ||
"name": "node-sleepbot-cgi", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "A Node.js app to replace legacy Perl CGI scripts for sleepbot.com", | ||
"author": "Daniel M Foley", | ||
"author": "Daniel M Foley <webmaster@sleepbot.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "ssh://git@sink.cantremember.com/opt/git-repo/node-sleepbot-cgi.git" | ||
}, | ||
"license": "WTFPL", | ||
"homepage": "http://sleepbot.com", | ||
"email": "webmaster@sleepbot.com", | ||
"keywords": [ | ||
"sleepbot" | ||
], | ||
"main": "index.js", | ||
"directories": { | ||
"app": "./app", | ||
"lib": "./lib" | ||
}, | ||
"files": [], | ||
"readmeFilename": "README.md", | ||
"scripts": { | ||
"postinstall": "./run/post-install", | ||
"test": "BLUEBIRD_DEBUG=1 NODE_ENV=test ./node_modules/.bin/mocha test", | ||
"test-debug": "BLUEBIRD_DEBUG=1 NODE_ENV=test ./node_modules/.bin/mocha debug test", | ||
"ci": "./run/ci", | ||
"lint": "./run/lint", | ||
"style": "./run/style", | ||
"coverage": "./run/coverage", | ||
"doc": "./run/doc", | ||
"dev": "BLUEBIRD_DEBUG=1 NODE_ENV=test node app.js" | ||
"dev": "BLUEBIRD_DEBUG=1 NODE_ENV=dev node app.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "ssh://git@sink.cantremember.com/opt/git-repo/node-sleepbot-cgi.git" | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"readmeFilename": "README.md", | ||
"dependencies": { | ||
"bluebird": "~2.3.2", | ||
"bluebird": "^2.9.0", | ||
"cookie-parser": "~1.3.2", | ||
"csv": "0.4.x", | ||
"ejs": "~1.0.0", | ||
"express": "~4.8.7", | ||
"forever": "~0.11.1", | ||
"glob": "~4.0.5", | ||
"csv": "^0.4.0", | ||
"ejs": "^2.3.0", | ||
"express": "^4.12.0", | ||
"forever": "~0.14.0", | ||
"glob": "^5.0.0", | ||
"lodash": "^3.8.0", | ||
"marked-engine": "~0.1.0", | ||
"minimist": "~1.1.0", | ||
"nconf": "~0.7.1", | ||
"request": "~2.40.0" | ||
"request": "^2.55.0" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "~0.2.7", | ||
"@cantremember/node-mocks-http": "^1.5.0", | ||
"coveralls": "^2.11.2", | ||
"istanbul": "~0.3.14", | ||
"jscs": "^1.12.0", | ||
"jsdoc": "3.3.0-beta1", | ||
"jshint": "^2.6.3", | ||
"mocha": "^1.21.4", | ||
"mocha": "^2.2.0", | ||
"mock-fs": "^2.6.0", | ||
"node-mocks-http": "git+ssh://git@github.com:cantremember/node-mocks-http.git#master", | ||
"proxyquire": "^1.4.0", | ||
"sinon": "^1.10.3", | ||
"supertest": "~0.13.0" | ||
"supertest": "~1.0.0" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
source `dirname $0`/common | ||
|
||
# https://github.com/cainus/node-coveralls | ||
|
||
pushd . > /dev/null | ||
cd $ROOT | ||
|
||
OUTPUT=./coverage/lcov.info | ||
rm -f $OUTPUT | ||
|
||
NODE_ENV=test $NODE_BIN/istanbul cover $NODE_BIN/_mocha test -- --reporter dot | ||
if [[ "$?" != "0" ]]; then | ||
FAIL "Test Suite failed" | ||
fi | ||
|
||
cat $OUTPUT | $NODE_BIN/coveralls | ||
|
||
popd > /dev/null | ||
|
||
SUCCEED "CI passed!" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
source `dirname $0`/common | ||
|
||
|
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,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
source `dirname $0`/common | ||
|
||
|
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,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
source `dirname $0`/common | ||
|
||
|
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,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
source `dirname $0`/common | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
source `dirname $0`/common | ||
|
||
|
Oops, something went wrong.