Use coveralls and add coverage
This commit is contained in:
parent
b675a648c0
commit
b9a00ed68b
@ -1,6 +1,8 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
|
|
||||||
node_js:
|
node_js:
|
||||||
- "0.11"
|
- "0.11"
|
||||||
- "0.10"
|
- "0.10"
|
||||||
- "0.8"
|
- "0.8"
|
||||||
|
script:
|
||||||
|
- npm test
|
||||||
|
- npm run coverage
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# CartoCSS
|
# 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.
|
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.
|
||||||
|
|
||||||
|
17
package.json
17
package.json
@ -4,8 +4,8 @@
|
|||||||
"description": "Mapnik Stylesheet Compiler",
|
"description": "Mapnik Stylesheet Compiler",
|
||||||
"url": "https://github.com/mapbox/carto",
|
"url": "https://github.com/mapbox/carto",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "http://github.com/mapbox/carto.git"
|
"url": "http://github.com/mapbox/carto.git"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Mapbox",
|
"name": "Mapbox",
|
||||||
@ -23,9 +23,11 @@
|
|||||||
"Konstantin Käfer",
|
"Konstantin Käfer",
|
||||||
"Alexis Sellier <self@cloudhead.net>"
|
"Alexis Sellier <self@cloudhead.net>"
|
||||||
],
|
],
|
||||||
"licenses": [{
|
"licenses": [
|
||||||
|
{
|
||||||
"type": "Apache"
|
"type": "Apache"
|
||||||
}],
|
}
|
||||||
|
],
|
||||||
"bin": {
|
"bin": {
|
||||||
"carto": "./bin/carto",
|
"carto": "./bin/carto",
|
||||||
"mml2json.js": "./bin/mml2json.js"
|
"mml2json.js": "./bin/mml2json.js"
|
||||||
@ -44,10 +46,13 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "1.12.x",
|
"mocha": "1.12.x",
|
||||||
"jshint": "0.2.x",
|
"jshint": "0.2.x",
|
||||||
"sax": "0.1.x"
|
"sax": "0.1.x",
|
||||||
|
"istanbul": "~0.2.14",
|
||||||
|
"coveralls": "~2.10.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"pretest": "npm install",
|
"pretest": "npm install",
|
||||||
"test": "mocha -R spec"
|
"test": "mocha -R spec",
|
||||||
|
"coverage": "istanbul cover ./node_modules/.bin/_mocha && coveralls < ./coverage/lcov.info"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user