// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
- preprocessors: {},
+ preprocessors: {
+ 'dist/svg.js': ['coverage']
+ },
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
- reporters: ['progress'],
+ reporters: ['progress', 'coverage'],
+
+
+ // configure the coverage reporter
+ coverageReporter: {
+ // Specify a reporter type.
+ type: 'lcov',
+ dir: 'coverage/',
+ subdir: function(browser) {
+ // normalization process to keep a consistent browser name accross different OS
+ return browser.toLowerCase().split(/[ /-]/)[0]; // output the results into: './coverage/firefox/'
+ }
+ },
// web server port
test/
src/index.js
node_modules/
-.vscode/
\ No newline at end of file
+.vscode/
+coverage/
script:
- npm run build
- npm test
+ - cat coverage/firefox/lcov.info | node_modules/.bin/coveralls
#sudo: required
#dist: trusty
addons:
# SVG.js
[![Build Status](https://travis-ci.org/svgdotjs/svg.js.svg?branch=master)](https://travis-ci.org/svgdotjs/svg.js)
+[![Coverage Status](https://coveralls.io/repos/github/svgdotjs/svg.js/badge.svg?branch=master)](https://coveralls.io/github/svgdotjs/svg.js?branch=master)
A lightweight library for manipulating and animating SVG.
* @copyright Wout Fierens <wout@mick-wout.com.com>
* @license MIT
*
-* BUILT: Sat Nov 12 2016 22:04:58 GMT+0100 (CET)
+* BUILT: Sun Nov 13 2016 00:23:29 GMT+0100 (CET)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
.pipe(wrapUmd({ src: 'src/umd.js'}))\r
.pipe(header(headerLong, { pkg: pkg }))\r
.pipe(trim({ leading: false }))\r
- .pipe(chmod(644))\r
+ .pipe(chmod(0o644))\r
.pipe(gulp.dest('dist'))\r
.pipe(size({ showFiles: true, title: 'Full' }))\r
})\r
.pipe(rename({ suffix:'.min' }))\r
.pipe(size({ showFiles: true, title: 'Minified' }))\r
.pipe(header(headerShort, { pkg: pkg }))\r
- .pipe(chmod(644))\r
+ .pipe(chmod(0o644))\r
.pipe(gulp.dest('dist'))\r
.pipe(size({ showFiles: true, gzip: true, title: 'Gzipped' }))\r
})\r
"docs": "gulp docs"
},
"devDependencies": {
+ "coveralls": "^2.11.15",
"del": "^2.2.0",
"gulp": "^3.8.6",
- "gulp-chmod": "^1.2.0",
+ "gulp-chmod": "^2.0.0",
"gulp-cli": "^1.2.2",
"gulp-concat": "^2.3.3",
"gulp-header": "^1.0.5",
"gulp-wrap": "^0.13.0",
"jasmine-core": "^2.5.2",
"karma": "^1.3.0",
+ "karma-coverage": "^1.1.1",
"karma-firefox-launcher": "^1.0.0",
"karma-jasmine": "^1.0.2",
- "request": "^2.75.0"
+ "request": "^2.78.0"
}
}