Skip to content

Commit

Permalink
coveralls integration for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Collins committed Jul 16, 2014
1 parent 162a581 commit 81dade8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COVERALLS_REPO_TOKEN=RnaPEOFicUYbOgQEcPcK1cb9cgJLHSISN
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ before_script:
- npm install -g bower
- bower install
script:
- gulp test
- gulp test
after_script:
- npm run coveralls
7 changes: 7 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ gulp.task('test', ['dist'], function () {
});
});

gulp.task('coveralls', function () {
var coveralls = require('gulp-coveralls');

gulp.src('./coverage/**/lcov.info')
.pipe(coveralls());
});

gulp.task('coverage', function () {
var express = require('express');
var app = express();
Expand Down
4 changes: 2 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ module.exports = function(config) {
},

coverageReporter: {
type : 'html',
dir : 'coverage/'
type: 'lcov',
dir:'coverage/'
},

// web server port
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "ment.io",
"version": "0.0.0",
"description": "Mentions for Angular",
"main": "demo.js",
"main": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"coveralls": "gulp coveralls"
},
"repository": {
"type": "git",
Expand All @@ -27,6 +28,7 @@
"gulp": "^3.6.2",
"gulp-angular-templatecache": "^1.2.1",
"gulp-concat": "^2.2.0",
"gulp-coveralls": "^0.1.2",
"gulp-jshint": "^1.6.3",
"gulp-karma": "0.0.4",
"gulp-livereload": "^1.5.0",
Expand Down

0 comments on commit 81dade8

Please sign in to comment.