Skip to content

Commit

Permalink
attempt at coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Feb 16, 2015
1 parent b27781c commit b6bc347
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ module.exports = function (grunt) {
},
coveralls: {
options: {
debug: true,
coverageDir: 'coverage/',
dryRun: true,
force: true,
recursive: true
// dont fail if coveralls fails
force: true
},
main_target: {
src: "coverage/lcovonly.info"
}
}
});
Expand All @@ -109,7 +109,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-sloc');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-karma-coveralls');
grunt.loadNpmTasks("grunt-coveralls");

// Default task.
grunt.registerTask('default', ['concat', 'uglify', 'less', 'sloc']);
Expand Down
6 changes: 4 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ module.exports = function (config) {
reporters: ['coverage'],

coverageReporter: {
type: "lcov",
dir: "coverage/"
dir: "coverage/",
reporters: [
{ type: 'lcovonly', subdir: '.', file: 'lcovonly.info' }
]
},

// web server port
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Global Croplands",
"homepage": "www.Croplands.org",
"homepage": "http://www.Croplands.org",
"author": {
"name": "Justin Poehnelt",
"email": "jpoehnelt@usgs.gov"
Expand All @@ -13,15 +13,17 @@
"grunt-contrib-less": "^0.11.4",
"grunt-contrib-uglify": "^0.6.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-coveralls": "^1.0.0",
"grunt-karma": "^0.10.1",
"grunt-karma-coveralls": "^2.5.3",
"grunt-sloc": "^0.5.2",
"jasmine-core": "^2.2.0",
"karma": "^0.12.31",
"karma-chrome-launcher": "^0.1.7",
"karma-coverage": "^0.2.7",
"karma-coveralls": "^0.1.5",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4"
},
"dependencies": {
"coveralls": "^2.11.2"
}
}

0 comments on commit b6bc347

Please sign in to comment.