Skip to content

Commit 2b0d2b6

Browse files
committed
Coveralls support
1 parent 599b813 commit 2b0d2b6

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
service_name: travis-ci
2+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Angular Schema Form
22
===================
33

4+
[![Build Status](https://travis-ci.org/Textalk/angular-schema-form.svg?branch=master)](https://travis-ci.org/Textalk/angular-schema-form)
5+
[![Coverage Status](https://coveralls.io/repos/Textalk/angular-schema-form/badge.png?branch=master)](https://coveralls.io/r/Textalk/angular-schema-form?branch=development)
6+
47
Generate forms from a JSON schema, with AngularJS!
58

69
### [Try out the example page](http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html)

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function(config) {
4545

4646
// optionally, configure the reporter
4747
coverageReporter: {
48-
type : 'html',
48+
type : 'lcov',
4949
dir : 'coverage/'
5050
},
5151

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"version": "0.4.0",
44
"description": "Create forms from a JSON schema",
55
"scripts": {
6-
"test": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS"
6+
"test": "rm -fr coverage && ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS karma.conf.js && find coverage/ -name lcov.info -print0 | xargs -0 cat | ./node_modules/coveralls/bin/coveralls.js"
77
},
88
"author": "Textalk",
99
"license": "MIT",
1010
"devDependencies": {
1111
"chai": "^1.9.0",
12+
"coveralls": "^2.11.0",
1213
"gulp": "^3.5.6",
1314
"gulp-angular-templatecache": "^1.1.1",
1415
"gulp-concat": "^2.2.0",
@@ -22,6 +23,7 @@
2223
"karma-ng-html2js-preprocessor": "^0.1.0",
2324
"karma-phantomjs-launcher": "^0.1.4",
2425
"mocha": "^1.18.0",
26+
"mocha-lcov-reporter": "0.0.1",
2527
"sinon": "^1.9.0",
2628
"sinon-chai": "^2.5.0",
2729
"streamqueue": "0.0.5"

0 commit comments

Comments
 (0)