Skip to content

Commit

Permalink
添加coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
crossjs committed Mar 24, 2014
1 parent 9defadf commit 4da251d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
@@ -1,12 +1,14 @@
language: node_js

node_js:
- 0.10

install:
- npm install -g grunt-cli
- npm install --save-dev
- npm install -g spm
- spm install --save

script:
- grunt qunit
- grunt qunit

after_success:
- grunt coveralls
12 changes: 10 additions & 2 deletions Gruntfile.js
Expand Up @@ -30,14 +30,22 @@ module.exports = function(grunt) {
coverage: {
src: ['src/*.js'],
instrumentedFiles: 'temp/',
htmlReport: 'report/coverage',
coberturaReport: 'report/',
lcovReport: 'report/',
linesThresholdPct: 85
}
},
all: ['test/*.html']
},

coveralls: {
options: {
force: true
},
all: {
src: 'report/*.info'
}
},

yuidoc: {
compile: {
name: '<%= pkg.name %>',
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -32,13 +32,14 @@
},
"devDependencies": {
"grunt": "*",
"grunt-cmd-transport": "*",
"grunt-cmd-concat": "*",
"grunt-contrib-clean": "*",
"grunt-contrib-copy": "*",
"grunt-contrib-jshint": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-yuidoc": "*",
"grunt-cmd-transport": "*",
"grunt-cmd-concat": "*",
"grunt-coveralls": "*",
"grunt-qunit-istanbul": "*",
"matchdep": "*"
},
Expand Down
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -2,6 +2,7 @@

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/crossjs/events/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
[![Build Status](https://api.travis-ci.org/crossjs/events.png?branch=master)](http://travis-ci.org/crossjs/events)
[![Coverage Status](https://coveralls.io/repos/crossjs/events/badge.png?branch=master)](https://coveralls.io/r/crossjs/events)
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)

> seajs module
Expand Down

0 comments on commit 4da251d

Please sign in to comment.