-
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.
setup travis, coveralls and code-climate
- Loading branch information
Showing
7 changed files
with
430 additions
and
5 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,40 @@ | ||
version: 2 | ||
# plugins: | ||
# duplication: | ||
# enable: true | ||
checks: | ||
identical-code: | ||
config: | ||
threshold: 50 | ||
similar-code: | ||
config: | ||
threshold: 50 | ||
argument-count: | ||
config: | ||
threshold: 4 | ||
complex-logic: | ||
config: | ||
threshold: 4 | ||
file-lines: | ||
config: | ||
threshold: 300 | ||
method-complexity: | ||
config: | ||
threshold: 6 | ||
method-count: | ||
config: | ||
threshold: 25 | ||
method-lines: | ||
config: | ||
threshold: 30 | ||
nested-control-flow: | ||
config: | ||
threshold: 4 | ||
return-statements: | ||
config: | ||
threshold: 4 | ||
|
||
exclude_patterns: | ||
- "node_modules/" | ||
- "test/" | ||
- "dist/" |
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 +1 @@ | ||
{"processes":{"9fa74a99-d3c2-4794-bdf5-33c53f3cbcfe":{"parent":null,"children":["ab601054-bef8-4ae3-9c3c-80c41951e1bf"]},"ab601054-bef8-4ae3-9c3c-80c41951e1bf":{"parent":"9fa74a99-d3c2-4794-bdf5-33c53f3cbcfe","children":[]}},"files":{"/home/toluwase/dev/nodejs/node-req/src/node-req.js":["ab601054-bef8-4ae3-9c3c-80c41951e1bf"],"/home/toluwase/dev/nodejs/node-req/src/libs/paths.js":["ab601054-bef8-4ae3-9c3c-80c41951e1bf"]},"externalIds":{}} | ||
{"processes":{"b0a623ef-911e-40cc-bf96-51317befe53d":{"parent":"f3ae3c20-8874-400e-8044-d6333bea3dbd","children":[]},"f3ae3c20-8874-400e-8044-d6333bea3dbd":{"parent":null,"children":["b0a623ef-911e-40cc-bf96-51317befe53d"]}},"files":{"/home/toluwase/dev/nodejs/node-req/src/node-req.js":["b0a623ef-911e-40cc-bf96-51317befe53d"],"/home/toluwase/dev/nodejs/node-req/src/libs/paths.js":["b0a623ef-911e-40cc-bf96-51317befe53d"]},"externalIds":{}} |
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,24 @@ | ||
language: node_js | ||
env: | ||
global: | ||
- CC_TEST_REPORTER_ID=71274be1c3aff2bb685a3a3f7b023c02e8d204f4f9e4adf746ac1ae6413aed8a | ||
node_js: | ||
- node | ||
before_script: | ||
- yarn global add nyc | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 | ||
> ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- "./cc-test-reporter before-build" | ||
install: | ||
- npm install | ||
script: | ||
- npm run test | ||
cache: | ||
directories: | ||
- node_modules | ||
after_success: | ||
- npm run coveralls | ||
- npm run coverage | ||
after_script: | ||
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT" |
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.