Skip to content

Commit

Permalink
setup travis, coveralls and code-climate
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkll committed Jun 15, 2019
1 parent 4bfeca1 commit a01a6ce
Show file tree
Hide file tree
Showing 7 changed files with 430 additions and 5 deletions.
40 changes: 40 additions & 0 deletions .codeclimate.yml
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/"
2 changes: 1 addition & 1 deletion .nyc_output/processinfo/index.json
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":{}}
24 changes: 24 additions & 0 deletions .travis.yml
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"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Node-Request
[![Build Status](https://travis-ci.org/Merkll/node-requests.svg?branch=develop)](https://travis-ci.org/Merkll/node-requests)[![Coverage Status](https://coveralls.io/repos/github/Merkll/node-requests/badge.svg?branch=develop)](https://coveralls.io/github/Merkll/node-requests?branch=develop)[![Maintainability](https://api.codeclimate.com/v1/badges/6f999e00dc9ab8c22795/maintainability)](https://codeclimate.com/github/Merkll/node-requests/maintainability)[![Test Coverage](https://api.codeclimate.com/v1/badges/6f999e00dc9ab8c22795/test_coverage)](https://codeclimate.com/github/Merkll/node-requests/test_coverage)
An npm module for generic Node.js requests handling. This module was inspired to be use with AWS lambda function while allowing easy integration with server frameworks. This module has been tested and works with express.js.

This allows request to be made like conventional function invocation.
Expand Down
Loading

0 comments on commit a01a6ce

Please sign in to comment.