diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..68774db4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: node_js +node_js: + - "8" +script: + - npm test + - npm run lint +after_success: + - npm run coveralls +notifications: + email: false diff --git a/README.md b/README.md index 858817dc..12e882e4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ GRNsight ======== +[![Build Status](https://travis-ci.org/dondi/GRNsight.svg?branch=beta)](https://travis-ci.org/dondi/GRNsight) +[![Coverage Status](https://coveralls.io/repos/github/dondi/GRNsight/badge.svg?branch=beta)](https://coveralls.io/github/dondi/GRNsight?branch=beta) http://dondi.github.io/GRNsight/ diff --git a/package.json b/package.json index 1cad5b96..3298b1d2 100644 --- a/package.json +++ b/package.json @@ -24,16 +24,19 @@ }, "devDependencies": { "chai": "1.10.0", + "coveralls": "^2.13.1", "eslint": "^3.19.0", "istanbul": "0.4.5", "jquery-extend": "2.0.3", - "mocha": "2.5.3" + "mocha": "2.5.3", + "mocha-lcov-reporter": "^1.3.0" }, "scripts": { "test": "mocha --reporter list", "start": "parallelshell --wait \"nodemon web-client/app.js\" \"nodemon server/app.js\"", "coverage": "istanbul cover _mocha", - "lint": "eslint **/*.js" + "lint": "eslint **/*.js", + "coveralls": "npm run coverage -- --report lcovonly && cat ./coverage/lcov.info | coveralls" }, "repository": { "type": "git",