Skip to content

Commit

Permalink
Added coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Xotic750 committed Dec 2, 2013
1 parent a32980d commit 9931702
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 14 deletions.
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
node_modules/
src/lang/cldr/
src/tz/tz/
src/cldr/
src/tz/
src/cldr.zip
src/tzdata.tar.gz
src/includes/
.DS_Store
*.komodoproject
.coveralls.yml
lib-cov/
21 changes: 19 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
pkg: grunt.file.readJSON('package.json'),

clean: {
all: ['README.md', 'docs', 'lib', 'src/cldr.zip', 'src/tzdata.tar.gz', 'src/includes', 'src/cldr', 'src/tz'],
after: ['src/cldr.zip', 'src/tzdata.tar.gz', 'src/cldr', 'src/tz']
all: ['README.md', 'docs', 'lib', 'src/cldr.zip', 'src/tzdata.tar.gz', 'src/includes', 'src/cldr', 'src/tz', 'lib-cov'],
after: ['src/cldr.zip', 'src/tzdata.tar.gz', 'src/cldr', 'src/tz', 'lib-cov']
},

curl: {
Expand Down Expand Up @@ -243,6 +243,21 @@
}
},

shell: {
coverage: {
options: {
stdout: true
},
command: 'node_modules/jscoverage/bin/jscoverage lib/astrodate.js lib-cov/astrodate.js'
},
coveralls: {
options: {
stdout: true
},
command: 'node_modules/mocha/bin/mocha -R mocha-lcov-reporter tests/raw/create.js | ./node_modules/coveralls/bin/coveralls.js'
}
},

watch: {
test: {
files: [
Expand Down Expand Up @@ -278,6 +293,7 @@
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-curl');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-shell');

// Default task.
grunt.registerTask('default', [
Expand All @@ -298,6 +314,7 @@
'jsbeautifier:dist2',
'jshint:lib',
'mochaTest:raw',
'shell',
'uglify',
'mochaTest:min',
'buildReadme',
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Master [![Build Status](https://travis-ci.org/Xotic750/astrodate.png?branch=master)](https://travis-ci.org/Xotic750/astrodate "Build Stats on Travis CI")
Master
[![Build Status](https://travis-ci.org/Xotic750/astrodate.png?branch=master)](https://travis-ci.org/Xotic750/astrodate "Build Stats on Travis CI")
[![Coverage Status](https://coveralls.io/repos/Xotic750/astrodate/badge.png?branch=master)](https://coveralls.io/r/Xotic750/astrodate?branch=master)

#[AstroDate 0.6.1](http://xotic750.github.io/astrodate/)
###### Graham Fairweather <xotic750@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion docs/AstroDate.html
Original file line number Diff line number Diff line change
Expand Up @@ -7558,7 +7558,7 @@ <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-a
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 03:17:00 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 14:10:36 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/astrodate.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -29567,7 +29567,7 @@ <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-a
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 03:17:00 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 14:10:36 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
8 changes: 5 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ <h3> </h3>


<section>
<article><p>Master <a href="https://travis-ci.org/Xotic750/astrodate" title="Build Stats on Travis CI"><img src="https://travis-ci.org/Xotic750/astrodate.png?branch=master" alt="Build Status"></a></p>
<article><p>Master
<a href="https://travis-ci.org/Xotic750/astrodate" title="Build Stats on Travis CI"><img src="https://travis-ci.org/Xotic750/astrodate.png?branch=master" alt="Build Status"></a>
<a href="https://coveralls.io/r/Xotic750/astrodate?branch=master"><img src="https://coveralls.io/repos/Xotic750/astrodate/badge.png?branch=master" alt="Coverage Status"></a></p>
<h1><a href="http://xotic750.github.io/astrodate/">AstroDate 0.6.1</a></h1>
<h6>Graham Fairweather <a href="&#109;&#97;&#x69;&#x6c;&#116;&#111;&#58;&#x78;&#x6f;&#x74;&#x69;&#99;&#x37;&#x35;&#48;&#64;&#x67;&#109;&#97;&#x69;&#x6c;&#46;&#x63;&#111;&#109;">&#x78;&#x6f;&#x74;&#x69;&#99;&#x37;&#x35;&#48;&#64;&#x67;&#109;&#97;&#x69;&#x6c;&#46;&#x63;&#111;&#109;</a></h6>
<h6>Graham Fairweather <a href="&#109;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x78;&#111;&#116;&#x69;&#x63;&#55;&#53;&#x30;&#x40;&#x67;&#109;&#97;&#x69;&#x6c;&#46;&#99;&#111;&#109;">&#x78;&#111;&#116;&#x69;&#x63;&#55;&#53;&#x30;&#x40;&#x67;&#109;&#97;&#x69;&#x6c;&#46;&#99;&#111;&#109;</a></h6>
<p>Still very much work in progress, so there are <a href="https://github.com/Xotic750/astrodate/issues" title="Issues">bugs</a> and the API has not been fully defined (or documented) and is subject to major changes.</p>
<p>The idea behind the project is to not rely on Javascript's rather flaky <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" title="Date Object reference"><code>Date</code></a> object, give better accuracy, flexibility and be cross-browser.</p>
<p>Besides the standard <a href="http://en.wikipedia.org/wiki/Gregorian_calendar" title="Wikipedia">Gregorian calendar</a>, the <a href="http://en.wikipedia.org/wiki/Julian_calendar" title="Wikipedia">Julian calendar</a> is also available. This allows for AstroDate to be used in astronomical calculations.
Expand Down Expand Up @@ -131,7 +133,7 @@ <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-a
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 03:17:00 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 14:10:36 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/module-astrodate.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-a
<br clear="both">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 03:17:01 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha2</a> on Mon Dec 02 2013 14:10:36 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@
"grunt-jsbeautifier": "latest",
"grunt-replace": "latest",
"grunt-curl": "latest",
"grunt-zip": "latest"
"grunt-zip": "latest",
"coveralls": "latest",
"mocha-lcov-reporter": "latest",
"jscoverage": "latest",
"grunt-shell": "latest"
},
"optionalDependencies": {
"uglify-js": "latest",
Expand Down Expand Up @@ -98,7 +102,7 @@
},
"testling": {
"harness": "mocha",
"files": "tests/browser/*.js",
"files": "tests/min/*.js",
"browsers": [
"iexplore/6.0..latest",
"firefox/17..latest",
Expand Down
4 changes: 3 additions & 1 deletion templates/README.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Master [![Build Status](https://travis-ci.org/Xotic750/astrodate.png?branch=master)](https://travis-ci.org/Xotic750/astrodate "Build Stats on Travis CI")
Master
[![Build Status](https://travis-ci.org/Xotic750/astrodate.png?branch=master)](https://travis-ci.org/Xotic750/astrodate "Build Stats on Travis CI")
[![Coverage Status](https://coveralls.io/repos/Xotic750/astrodate/badge.png?branch=master)](https://coveralls.io/r/Xotic750/astrodate?branch=master)

#[AstroDate @@VERSION](@@HOMEPAGE)
###### @@AUTHORNAME <@@AUTHOREMAIL>
Expand Down

0 comments on commit 9931702

Please sign in to comment.