Permalink
Browse files

add coveralls

  • Loading branch information...
1 parent ee3c48c commit 7f05e7dc4402a5923d68f74177af26ab8b4b979f @jamuhl jamuhl committed Jan 5, 2016
Showing with 9 additions and 7 deletions.
  1. +1 −0 .coveralls.yml
  2. +3 −3 gulpfile.js
  3. +2 −2 karma.conf.js
  4. +3 −2 package.json
View
@@ -0,0 +1 @@
+repo_token: SHBhCq4BLOpxJww3DG6g7dtKcuhG62zcK
View
@@ -69,11 +69,11 @@ gulp.task('test', function (done) {
}, done).start();
});
-gulp.task('test_withoutCoverate', function (done) {
+gulp.task('test_forCI', function (done) {
new Server({
configFile: __dirname + '/karma.conf.js',
singleRun: true,
- reporters: [ 'spec' ],
+ reporters: [ 'coverage', 'coveralls' ],
}, done).start();
});
@@ -190,4 +190,4 @@ gulp.task('default', ['watch']);
gulp.task('build', ['concat', 'babel', 'rename']);
gulp.task('publish', ['bump']);
-gulp.task('test_ci', ['test_withoutCoverate', 'test_compat_ci']);
+gulp.task('test_ci', ['test_forCI', 'test_compat_ci']);
View
@@ -42,12 +42,12 @@ module.exports = function(karma) {
browserify: {
debug: true,
transform: [
- 'babelify', /*'brfs',*/ 'browserify-istanbul'
+ 'babelify', /*'brfs',*/ /*'browserify-istanbul'*/
]
},
coverageReporter: {
- type : 'html', // disabled - erroring now, https://github.com/karma-runner/karma-coverage/issues/157
+ type : 'lcov', //'html', // disabled - erroring now, https://github.com/karma-runner/karma-coverage/issues/157
dir : 'coverage/'
}
});
View
@@ -42,17 +42,18 @@
"gulp-sourcemaps": "1.5.2",
"gulp-tag-version": "1.3.0",
"gulp-uglify": "1.4.2",
- "istanbul": "gotwarlost/istanbul#source-map",
"i18next-browser-languagedetector": "0.0.11",
"i18next-localstorage-cache": "0.0.4",
- "i18next-xhr-backend": "0.0.5",
"i18next-sprintf-postprocessor": "0.0.6",
+ "i18next-xhr-backend": "0.0.5",
+ "istanbul": "gotwarlost/istanbul#source-map",
"karma": "0.13.14",
"karma-browserify": "4.3.0",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "0.1.4",
"karma-cli": "0.0.4",
"karma-coverage": "0.5.3",
+ "karma-coveralls": "^1.1.2",
"karma-expect": "1.1.0",
"karma-mocha": "0.1.10",
"karma-phantomjs-launcher": "0.2.1",

0 comments on commit 7f05e7d

Please sign in to comment.