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,11 +1,12 @@
language: node_js
node_js:
- "0.10"
script: make test-coveralls
notifications:
irc:
irc:
channels:
- "irc.esper.net#spongy"
skip_join: true
services:
- redis-server
skip_join: true
skip_join: true

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,
"author": "Jake0oo0",
"description": "A NodeJS application to server Minecraft avatars.",
"contributors": [{
"name": "Jomo"
}],
"contributors": [
{
"name": "Jomo"
}
],
"repository": {
"type": "git",
"url": "https://github.com/Jake0oo0/crafatar"
@ -20,19 +22,21 @@
],
"scripts": {
"start": "node server.js",
"test": "node_modules/.bin/mocha"
"test": "make test"
},
"dependencies": {
"express": "~4.9.0",
"body-parser": "~1.8.1",
"cookie-parser": "~1.3.3",
"morgan": "~1.3.0",
"serve-favicon": "~2.1.3",
"coveralls": "^2.11.2",
"debug": "~2.0.0",
"express": "~4.9.0",
"jade": "~1.6.0",
"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",
"mocha": "2.0.1"
"request": "2.45.0",
"serve-favicon": "~2.1.3"
}
}
}