diff --git a/.travis.yml b/.travis.yml index 45074de..7301bbb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,3 +14,8 @@ cache: - node_modules script: gulp ci + +after_script: + - istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec + - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js + - rm -rf ./coverage diff --git a/package.json b/package.json index a34ef15..8aa465a 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "devDependencies": { "browserify": "^10.0.0", "chai": "^2.3.0", + "coveralls": "^2.11.2", "del": "^1.1.1", "gulp": "^3.8.11", "gulp-babel": "^5.1.0", @@ -22,8 +23,10 @@ "gulp-rename": "^1.2.2", "gulp-sourcemaps": "^1.5.2", "gulp-uglify": "^1.2.0", + "istanbul": "^0.3.13", "jshint-stylish": "^1.0.1", "mocha": "^2.2.4", + "mocha-lcov-reporter": "0.0.2", "run-sequence": "^1.1.0", "vinyl-source-stream": "^1.1.0" }