Skip to content

Commit

Permalink
Run grunt coveralls to publish coverage results on coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Jan 5, 2016
1 parent f915081 commit 7f7595f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
8 changes: 5 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ module.exports = function(grunt) {
},
coveralls: {
options: {
coverage_dir: 'coverage/'
coverage_dir: 'coverage/',
recursive: true
}
},
karma: {
Expand All @@ -59,7 +60,8 @@ module.exports = function(grunt) {
},
coverageReporter: {
type: "lcov",
dir: "coverage/"
dir: "coverage/",
recursive: true
}
},
saucelabs: {
Expand Down Expand Up @@ -120,5 +122,5 @@ module.exports = function(grunt) {
});

// Development
grunt.registerTask('test', ["karma:coverage", "karma:saucelabs"]);
grunt.registerTask('test', ["karma:coverage"]);
};
3 changes: 1 addition & 2 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ Package.onUse(function(api) {
api.use('digimet:[email protected]', where);

api.addFiles('./dist/ng-flow.js', where); // Files in use

});
});
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
"readmeFilename": "README.md",
"devDependencies": {
"grunt": "~0.4",
"grunt-contrib-uglify": "~0.11",
"grunt-contrib-concat": "~0.5.1",
"grunt-karma": "~0.12.1",
"grunt-coveralls": "~1.0.0",
"grunt-bump": "0.7.0",
"grunt-contrib-clean": "~0.7.0",
"grunt-contrib-concat": "~0.5.1",
"grunt-contrib-uglify": "~0.11",
"grunt-karma": "~0.12.1",
"grunt-karma-coveralls": "^2.5.4",
"karma": "0.13",
"karma-coverage": "0.5.3",
"karma-jasmine": "0.3",
"karma-firefox-launcher": "0.1.7",
"karma-jasmine": "^0.3.6",
"karma-sauce-launcher": "0.3.0"
}
}
1 change: 1 addition & 0 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if [ $TEST = "unit-tests" ]; then
sh -e /etc/init.d/xvfb start
sleep 1
grunt karma:coverage
grunt coveralls

elif [[ $TEST = "browser-tests" ]]; then

Expand Down

0 comments on commit 7f7595f

Please sign in to comment.