Skip to content

Commit

Permalink
Merge pull request #418 from optikfluffel/coveralls-integration
Browse files Browse the repository at this point in the history
add karma-coverage and coveralls grunt task
  • Loading branch information
jlukic committed Dec 10, 2013
2 parents 13b501d + d6ebd5b commit d9c4b2a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ node_js:
- "0.10"
before_script:
- npm install -g grunt-cli
- npm update
- npm update
after_script:
- grunt coveralls
7 changes: 7 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,12 @@ module.exports = function(grunt) {
]
}
}
},

coveralls: {
options: {
coverage_dir: 'coverage'
}
}

};
Expand All @@ -624,6 +630,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-cssjanus');
grunt.loadNpmTasks('grunt-clear');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-karma-coveralls');

grunt.initConfig(config);

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Semantic [![Build Status](https://travis-ci.org/Semantic-Org/Semantic-UI.png)](https://travis-ci.org/Semantic-Org/Semantic-UI)
# Semantic [![Build Status](https://travis-ci.org/Semantic-Org/Semantic-UI.png)](https://travis-ci.org/Semantic-Org/Semantic-UI) [![Coverage Status](https://coveralls.io/repos/optikfluffel/Semantic-UI/badge.png?branch=coveralls-integration)](https://coveralls.io/r/optikfluffel/Semantic-UI?branch=coveralls-integration)
Semantic is a UI Component library implemented using a set of specifications designed around natural language

Semantic UI is under constant development, so **be sure to check out our [release notes](https://github.com/Semantic-Org/Semantic-UI/blob/master/RELEASE%20NOTES.md) for recent changes**.
Expand All @@ -8,13 +8,13 @@ Semantic UI is under constant development, so **be sure to check out our [releas

> Semantic UI is production ready, but is "pre-release" until build and theming tools are available, and documentation is complete for all components.
Please [share any issues](https://github.com/Semantic-Org/Semantic-UI/issues?state=open) you may have, we need your help to get all the kinks out.
Please [share any issues](https://github.com/Semantic-Org/Semantic-UI/issues?state=open) you may have, we need your help to get all the kinks out.

If you are reporting a bug *you must create a test-case*. You can [fork this jsfiddle](http://jsfiddle.net/Vbr9d/42/) to get you started.

## Getting Started

The Semantic library describes many UI elements. In most instances it might be best to build a custom build with only the elements you need.
The Semantic library describes many UI elements. In most instances it might be best to build a custom build with only the elements you need.

To download the entire library

Expand All @@ -31,7 +31,7 @@ If you need help, come hang out in `#semantic-ui` on *irc.freenode.net*. Click
#### Right-to-Left (RTL Version)

RTL versions are compiled on every patch update, and are available in ``/rtl/``

### Integration

Comunity contributed plugins and ports for Wordpress, Angular, Knockout, Rails, and more can be found on the [Integration page](https://github.com/Semantic-Org/Semantic-UI/wiki/Integration).
Expand Down
9 changes: 7 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,17 @@ module.exports = function(config) {
],

preprocessors: {
'**/*.html': []
'**/*.html': [],
'src/**/*.js': 'coverage'
},

// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['spec'],
reporters: ['spec', 'coverage'],

coverageReporter: {
type: 'lcov'
},

// web server port
port: 9999,
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"grunt-karma": "~0.6.2",
"karma-spec-reporter": "0.0.5",
"grunt-clear": "~0.2.1",
"grunt-autoprefixer": "~0.4.0"
"grunt-autoprefixer": "~0.4.0",
"grunt-karma-coveralls": "~2.2.0",
"karma-coverage": "~0.1.4"
}
}

0 comments on commit d9c4b2a

Please sign in to comment.