Add CodeClimate coverage

This commit is contained in:
Adrian Zankich 2014-05-21 19:35:09 -07:00
parent 544e34dc78
commit 41b5e576ca
4 changed files with 20 additions and 19 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/node_modules/
npm-debug.log
/coverage/

View File

@ -1,5 +1,8 @@
language: node_js
script: "make"
script:
- npm install -g codeclimate-test-reporter
- make cover
- CODECLIMATE_REPO_TOKEN=d3aad610220b6eaf4f51e38393c1b62586b1d68b898b42e418d9c2a8e0a7cb0d codeclimate < coverage/lcov.info
node_js:
- '0.10'
branches:

View File

@ -4,7 +4,11 @@ TEST_FILES := test/support.js $(shell find test/specs -type f -name "*.js")
VERSION := $(shell node -e "console.log(require('./package.json').version)")
# Our 'phony' make targets (don't involve any file changes)
.PHONY: test bdd lint release
.PHONY: cover test bdd lint release
# Run Mocha, with coverage.
cover:
@$(BIN)/istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
# Run Mocha, with standard reporter.
test:

View File

@ -5,9 +5,7 @@
"description": "A JavaScript robotics framework using Node.js",
"homepage": "http://cylonjs.com",
"bugs": "https://github.com/hybridgroup/cylon/issues",
"author": "The Hybrid Group <cylonjs@hybridgroup.com>",
"contributors": [
"Ron Evans <ron@hybridgroup.com>",
"Andrew Stewart <andrew@hybridgroup.com>",
@ -16,14 +14,11 @@
"Gize Bonilla <gize@hybridgroup.com>",
"Adrian Zankich <adrian@hybridgroup.com>"
],
"repository": {
"type": "git",
"url": "https://github.com/hybridgroup/cylon"
},
"license": "Apache 2.0",
"hardware": {
"*": false,
"./": false,
@ -31,23 +26,21 @@
"node-namespace": true,
"./lib": true
},
"engines" : {
"node" : ">= 0.10.20"
"engines": {
"node": ">= 0.10.20"
},
"devDependencies": {
"sinon-chai": "2.5.0",
"chai": "1.9.1",
"mocha": "1.18.2",
"sinon": "1.9.1",
"jshint": "2.5.0"
"chai": "1.9.1",
"mocha": "1.18.2",
"sinon": "1.9.1",
"jshint": "2.5.0",
"istanbul": "0.2.10"
},
"dependencies": {
"async": "0.7.0",
"async": "0.7.0",
"express": "3.5.1",
"node-namespace": "1.0.0",
"express": "3.5.1",
"robeaux": ">= 0.1.0"
"robeaux": ">= 0.1.0"
}
}