use coveralls

This commit is contained in:
jomo 2014-11-08 02:58:16 +01:00
parent 2de0b0f9be
commit 4d562d70c4
3 changed files with 26 additions and 12 deletions

View File

@ -1,6 +1,7 @@
language: node_js language: node_js
node_js: node_js:
- "0.10" - "0.10"
script: make test-coveralls
notifications: notifications:
irc: irc:
channels: channels:

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
test:
@NODE_ENV=test ./node_modules/.bin/mocha
test-coveralls:
@$(MAKE) test
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@$(MAKE) test REPORTER=mocha-lcov-reporter | ./node_modules/.bin/coveralls
.PHONY: test

View File

@ -4,9 +4,11 @@
"private": true, "private": true,
"author": "Jake0oo0", "author": "Jake0oo0",
"description": "A NodeJS application to server Minecraft avatars.", "description": "A NodeJS application to server Minecraft avatars.",
"contributors": [{ "contributors": [
{
"name": "Jomo" "name": "Jomo"
}], }
],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/Jake0oo0/crafatar" "url": "https://github.com/Jake0oo0/crafatar"
@ -20,19 +22,21 @@
], ],
"scripts": { "scripts": {
"start": "node server.js", "start": "node server.js",
"test": "node_modules/.bin/mocha" "test": "make test"
}, },
"dependencies": { "dependencies": {
"express": "~4.9.0",
"body-parser": "~1.8.1", "body-parser": "~1.8.1",
"cookie-parser": "~1.3.3", "cookie-parser": "~1.3.3",
"morgan": "~1.3.0", "coveralls": "^2.11.2",
"serve-favicon": "~2.1.3",
"debug": "~2.0.0", "debug": "~2.0.0",
"express": "~4.9.0",
"jade": "~1.6.0", "jade": "~1.6.0",
"lwip": "0.0.5", "lwip": "0.0.5",
"request": "2.45.0", "mocha": "2.0.1",
"mocha-lcov-reporter": "0.0.1",
"morgan": "~1.3.0",
"redis": "0.12.1", "redis": "0.12.1",
"mocha": "2.0.1" "request": "2.45.0",
"serve-favicon": "~2.1.3"
} }
} }