Use coveralls and add coverage

This commit is contained in:
Tom MacWright 2014-07-03 11:44:35 -04:00
parent b675a648c0
commit b9a00ed68b
3 changed files with 15 additions and 8 deletions

View File

@ -1,6 +1,8 @@
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
script:
- npm test
- npm run coverage

View File

@ -1,6 +1,6 @@
# CartoCSS
[![Build Status](https://secure.travis-ci.org/mapbox/carto.png)](http://travis-ci.org/mapbox/carto)
[![Build Status](https://secure.travis-ci.org/mapbox/carto.png)](http://travis-ci.org/mapbox/carto) [![Coverage Status](https://coveralls.io/repos/mapbox/carto/badge.png)](https://coveralls.io/r/mapbox/carto)
Is the language for map design used by [TileMill](). It is similiar in syntax to CSS, but builds upon it with specific abilities to filter map data and by providing things like variables.

View File

@ -4,8 +4,8 @@
"description": "Mapnik Stylesheet Compiler",
"url": "https://github.com/mapbox/carto",
"repository": {
"type": "git",
"url": "http://github.com/mapbox/carto.git"
"type": "git",
"url": "http://github.com/mapbox/carto.git"
},
"author": {
"name": "Mapbox",
@ -23,9 +23,11 @@
"Konstantin Käfer",
"Alexis Sellier <self@cloudhead.net>"
],
"licenses": [{
"licenses": [
{
"type": "Apache"
}],
}
],
"bin": {
"carto": "./bin/carto",
"mml2json.js": "./bin/mml2json.js"
@ -44,10 +46,13 @@
"devDependencies": {
"mocha": "1.12.x",
"jshint": "0.2.x",
"sax": "0.1.x"
"sax": "0.1.x",
"istanbul": "~0.2.14",
"coveralls": "~2.10.1"
},
"scripts": {
"pretest": "npm install",
"test": "mocha -R spec"
"test": "mocha -R spec",
"coverage": "istanbul cover ./node_modules/.bin/_mocha && coveralls < ./coverage/lcov.info"
}
}