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/ /node_modules/
npm-debug.log npm-debug.log
/coverage/

View File

@ -1,5 +1,8 @@
language: node_js language: node_js
script: "make" script:
- npm install -g codeclimate-test-reporter
- make cover
- CODECLIMATE_REPO_TOKEN=d3aad610220b6eaf4f51e38393c1b62586b1d68b898b42e418d9c2a8e0a7cb0d codeclimate < coverage/lcov.info
node_js: node_js:
- '0.10' - '0.10'
branches: 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)") VERSION := $(shell node -e "console.log(require('./package.json').version)")
# Our 'phony' make targets (don't involve any file changes) # 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. # Run Mocha, with standard reporter.
test: test:

View File

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