Browse Source

Merge pull request #418 from optikfluffel/coveralls-integration

add karma-coverage and coveralls grunt task
pull/420/head
Jack Lukic 11 years ago
parent
commit
d9c4b2a8b7
5 changed files with 24 additions and 8 deletions
  1. 4
      .travis.yml
  2. 7
      Gruntfile.js
  3. 8
      README.md
  4. 9
      karma.conf.js
  5. 4
      package.json

4
.travis.yml

@ -3,4 +3,6 @@ node_js:
- "0.10"
before_script:
- npm install -g grunt-cli
- npm update
- npm update
after_script:
- grunt coveralls

7
Gruntfile.js

@ -605,6 +605,12 @@ module.exports = function(grunt) {
]
}
}
},
coveralls: {
options: {
coverage_dir: 'coverage'
}
}
};
@ -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);

8
README.md

@ -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**.
@ -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
@ -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).

9
karma.conf.js

@ -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,

4
package.json

@ -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"
}
}
Loading…
Cancel
Save