Skip to content

Commit 8270989

Browse files
committed
feat(build): travis integration with coveralls.io.
1 parent 9b28b04 commit 8270989

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
language: node_js
2+
23
node_js:
34
- "0.10"
5+
46
env:
5-
global:
6-
- secure: "Ugov4QqHxEN4976jaQvtQigwwB7wiG0vxiE4pIDiZKJ67py0d0kLZXI4CzNs8zV5EOrkR+ug2cs9vTmA8CdSmhQcx4SVwFoim/ReoQb9AK76+tgEso+F3nZpE1jeIorKN2/LAXtwkHOZa9WaDwhMlCULJxJ8DZoMsXkc5Xq3c6A="
7-
- secure: "QW7a9wCfc4u+MGnPyLzE+HHRhAhTf0a1mqixoUB2MVNL/hZ7+nXAOL/oz3LxodPpwH3NEl4RyqteGS15XpJvZKuKXiyHWbrfSLHz7DD1LYuIzc7UOgyBTXF0C97DP5ae7zui+qvDOe67ud+qBerroP9jdcx+mSVQgMIAfF1uWY4="
7+
global:
8+
- secure: "Ugov4QqHxEN4976jaQvtQigwwB7wiG0vxiE4pIDiZKJ67py0d0kLZXI4CzNs8zV5EOrkR+ug2cs9vTmA8CdSmhQcx4SVwFoim/ReoQb9AK76+tgEso+F3nZpE1jeIorKN2/LAXtwkHOZa9WaDwhMlCULJxJ8DZoMsXkc5Xq3c6A="
9+
- secure: "QW7a9wCfc4u+MGnPyLzE+HHRhAhTf0a1mqixoUB2MVNL/hZ7+nXAOL/oz3LxodPpwH3NEl4RyqteGS15XpJvZKuKXiyHWbrfSLHz7DD1LYuIzc7UOgyBTXF0C97DP5ae7zui+qvDOe67ud+qBerroP9jdcx+mSVQgMIAfF1uWY4="
10+
- secure: "gflE27IYzgjICndyY7800KdoNKem0oMWKtIjXQuSTJFuWJvBVWkUajT8maNbv1+c46r6iFptd27m5Arzl9hqAh2deHqLxwRGqietcY737q7oRJzKRfA4MGycF8fKHEh8U5KupXTC7UXuESLWGA+bpWA6KNJ5CImAw2MWJXmsX9c="
811

912
before_script:
1013
  - npm install -g grunt-cli

Gruntfile.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,19 @@ module.exports = function(grunt) {
182182
'dist/angular-leaflet-directive.js': ['coverage']
183183
},
184184
coverageReporter: {
185-
type : 'html',
185+
type : 'lcov',
186186
dir : 'coverage/'
187187
}
188188
}
189189
},
190190

191+
coveralls: {
192+
options: {
193+
debug: true,
194+
coverage_dir: 'coverage'
195+
}
196+
},
197+
191198
watch: {
192199
options : {
193200
livereload: 7777
@@ -286,5 +293,5 @@ module.exports = function(grunt) {
286293
grunt.registerTask('serve', ['connect:webserver']);
287294

288295
//travis
289-
grunt.registerTask('travis', ['bower:install', 'test:unit', 'shell:protractor_update', 'protractor:saucelabs']);
296+
grunt.registerTask('travis', ['bower:install', 'test:unit', 'karma:unit_coverage', 'coveralls', 'shell:protractor_update', 'protractor:saucelabs']);
290297
};

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@
3737
"karma-coffee-preprocessor": "*",
3838
"karma-phantomjs-launcher": "*",
3939
"karma-coverage": "*",
40-
"karma": "~0.10.x",
40+
"karma": "*",
4141
"protractor": "*",
4242
"grunt-protractor-runner": "*",
4343
"grunt-shell-spawn": "*",
4444
"grunt-conventional-changelog": "*",
45-
"grunt-bump": "*"
45+
"grunt-bump": "*",
46+
"grunt-karma-coveralls": "*"
4647
},
4748
"scripts": {
4849
"test": "grunt travis --verbose"

0 commit comments

Comments
 (0)