Skip to content

Commit

Permalink
Add CircleCI and Coveralls integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sbstjn committed Oct 9, 2016
1 parent 77c0e2d commit 69601e4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.bundle
.cache
.cover
.DS_Store
.jekyll-metadata
.sass-cache
Expand Down
9 changes: 9 additions & 0 deletions .karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ module.exports = function(config) {
transform: [
'babelify'
]
},
reporters: [
'progress',
'coverage',
'coveralls'
],
coverageReporter: {
type : 'lcov',
dir : '.cover/'
}
});
};
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ test: karma
karma:
@./node_modules/.bin/karma start .karma.js --single-run --reporters progress --log-level disable

cover:
@./node_modules/.bin/karma start .karma.js --single-run

karma-watch:
./node_modules/.bin/karma start .karma.js --reporters progress --log-level disable

Expand Down
5 changes: 5 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test:
override:
- make test
post:
- make cover
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"karma": "^1.3.0",
"karma-browserify": "^5.1.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "^1.0.2",
"karma-phantomjs-launcher": "^1.0.2",
"uglify-js": "^2.7.3",
Expand Down

0 comments on commit 69601e4

Please sign in to comment.