Skip to content

Commit

Permalink
Add support coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
yadicksonbasedos committed Oct 18, 2017
1 parent 2f9f7de commit eafe395
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 32 deletions.
20 changes: 0 additions & 20 deletions .codeclimate.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ node_js:
- 6
- 5
- 4
after_script:
- codeclimate-test-reporter < coverage/report-lcov/lcov.info
after_success: 'npm run coveralls'
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![TravisCI Status][travis-image]][travis-url]
[![CircleCI Status][circle-image]][circle-url]
[![AppVeyor Status][appveyor-image]][appveyor-url]
[![Test Coverage][codeclimate-image]][codeclimate-url]
[![Coverage Status][coveralls-image]][coveralls-url]

Angular factory to check keyboard event press button

Expand Down Expand Up @@ -35,9 +35,8 @@ $ bower install --save-dev angular-mocks@~1.3.20
$ npm install --save-dev bower
$ npm install --save-dev karma chai mocha
$ npm install --save-dev karma-chai karma-bro karma-mocha karma-phantomjs-launcher
$ npm install --save-dev karma-coverage
$ npm install --save-dev karma-coverage karma-istanbul
$ npm install --save-dev karma-mocha-reporter karma-junit-reporter
$ npm install --save-dev codeclimate-test-reporter
```

### Prepare application
Expand Down Expand Up @@ -67,6 +66,6 @@ $ bower register angular-ys-factory-keyboard https://github.com/yadickson/angula
[appveyor-image]: https://img.shields.io/appveyor/ci/yadickson/angular-ys-factory-keyboard.svg?label=appveyor
[appveyor-url]: https://ci.appveyor.com/project/yadickson/angular-ys-factory-keyboard

[codeclimate-image]: https://codeclimate.com/github/yadickson/angular-ys-factory-keyboard/badges/coverage.svg
[codeclimate-url]: https://codeclimate.com/github/yadickson/angular-ys-factory-keyboard
[coveralls-image]: https://coveralls.io/repos/yadickson/angular-ys-factory-keyboard/badge.svg
[coveralls-url]: https://coveralls.io/github/yadickson/angular-ys-factory-keyboard

11 changes: 8 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function(config) {
'test/**/*.js'
],

reporters: ['progress', 'mocha', 'junit', 'coverage'],
reporters: ['progress', 'mocha', 'junit', 'coverage', 'istanbul'],

hostname: 'localhost',

Expand All @@ -37,8 +37,13 @@ module.exports = function(config) {
reporters: [{
type: 'html',
subdir: '.'
},
{
}
]
},

istanbulReporter: {
dir : 'coverage',
reporters: [{
type: 'lcov',
subdir: '.'
}
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"angular-mocks": "^1.6.6",
"bower": "^1.8.2",
"chai": "^4.1.2",
"codeclimate-test-reporter": "^0.5.0",
"coveralls": "^3.0.0",
"karma": "^1.7.1",
"karma-bro": "^0.11.1",
"karma-browserify": "^5.1.1",
"karma-chai": "^0.1.0",
"karma-coverage": "^1.1.1",
"karma-istanbul": "0.0.2",
"karma-junit-reporter": "^1.2.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
Expand All @@ -26,7 +27,8 @@
},
"scripts": {
"pretest": "./node_modules/.bin/bower install",
"test": "./node_modules/.bin/karma start --single-run --browser PhantomJS"
"test": "./node_modules/.bin/karma start --single-run --browser PhantomJS",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit eafe395

Please sign in to comment.