Skip to content

Commit ab56b15

Browse files
author
Codeship Server
committed
chore(coverage): Report coverage to coveralls as part of the build
Also added a few badges to the readme Closes #280 and closes #279
1 parent f69b8c5 commit ab56b15

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ script:
1717
- npm run test
1818
after_success:
1919
- npm run semantic-release
20+
- npm run coverage:upload
2021
branches:
2122
except:
2223
- "/^v\\d+\\.\\d+\\.\\d+$/"

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
Native AngularJS datetime picker directive styled by Twitter Bootstrap 3
44

5+
[![Join the chat at https://gitter.im/dalelotts/angular-bootstrap-datetimepicker](https://badges.gitter.im/dalelotts/angular-bootstrap-datetimepicker.svg)](https://gitter.im/dalelotts/angular-bootstrap-datetimepicker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
56
[![MIT License][license-image]][license-url]
67
[![Build Status](https://travis-ci.org/dalelotts/angular-bootstrap-datetimepicker.png?branch=master)](https://travis-ci.org/dalelotts/angular-bootstrap-datetimepicker)
8+
[![Coverage Status](https://coveralls.io/repos/github/dalelotts/angular-bootstrap-datetimepicker/badge.svg?branch=master)](https://coveralls.io/github/dalelotts/angular-bootstrap-datetimepicker?branch=master)
79
[![Dependency Status](https://david-dm.org/dalelotts/angular-bootstrap-datetimepicker.svg)](https://david-dm.org/dalelotts/angular-bootstrap-datetimepicker)
810
[![devDependency Status](https://david-dm.org/dalelotts/angular-bootstrap-datetimepicker/dev-status.png)](https://david-dm.org/dalelotts/angular-bootstrap-datetimepicker#info=devDependencies)
11+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
912
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
1013
[![PayPal donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=F3FX5W6S2U4BW&lc=US&item_name=Dale%20Lotts&item_number=angular%2dbootstrap%2ddatetimepicker&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted "Donate one-time to this project using Paypal")
1114
<a href="https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fabout.twitter.com%2Fresources%2Fbuttons&amp;text=Check%20out%20this%20%23AngularJS%20directive%20that%20makes%20it%20dead%20simple%20for%20users%20to%20select%20dates%20%26%20times&amp;tw_p=tweetbutton&amp;url=https%3A%2F%2Fgithub.com%2Fdalelotts%2Fangular-bootstrap-datetimepicker&amp;via=dalelotts" target="_blank">
@@ -400,6 +403,20 @@ moment.locale('en'); // English
400403
moment.locale('zh-cn'); // Simplified chinese
401404
```
402405

406+
### First day of week
407+
408+
The first day of the week is also determined by moment's locale settings. For example, setting the locale to ```'fr'```
409+
will cause Monday to be the first day of the week.
410+
411+
### Hour and minute formats
412+
413+
The format of hours and mintues is also determined by moment's locale settings.
414+
415+
hours are displayed using 'll' as the format.
416+
minutes are displayed using 'lll' as the format.
417+
418+
You can change the format by setting moment to the desired locale, or creating a custom locale with the desired format.
419+
403420
# Screen shots
404421

405422
## Year view

karma.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ module.exports = function (config) {
4343
// optionally, configure the reporter
4444
coverageReporter: {
4545
reporters: [
46+
{type: 'lcov', dir: 'build/coverage', subdir: '.'},
4647
{type: 'json', dir: 'build/coverage/'},
4748
{type: 'html', dir: 'build/coverage/'}
4849
]

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
"autoprefixer": "^6.3.3",
2929
"bootstrap": "^3.3.6",
3030
"commitizen": "^2.5.0",
31+
"coveralls": "^2.11.6",
3132
"csscomb": "^3.1.8",
3233
"csslint": "^0.10.0",
3334
"cz-conventional-changelog": "^1.1.5",
3435
"del": "^2.2.0",
35-
"grunt": "^0.4.4",
36-
"grunt-bump": "^0.7.0",
36+
"eslint": "^2.2.0",
3737
"gulp": "^3.9.1",
3838
"gulp-angular-templatecache": "^1.8.0",
3939
"gulp-csslint": "^0.2.0",
@@ -62,10 +62,12 @@
6262
"plato": "^1.5.0",
6363
"run-browser": "^2.0.2",
6464
"semantic-release": "^6.2.0",
65+
"standard": "^6.0.7",
6566
"tape": "^4.4.0"
6667
},
6768
"scripts": {
6869
"test": "npm run test-browserify && gulp",
70+
"coverage:upload": "cat build/coverage/lcov.info | coveralls",
6971
"test-browserify": "run-browser test/commonjs/browserify.test.js -b",
7072
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
7173
},

0 commit comments

Comments
 (0)